icons: put the recipe for the generated icons into a variable

and use that variable instead of repeating the recipe for each icon size.
This commit is contained in:
Michael Natterer 2015-12-28 02:51:36 +01:00
parent e9a38c320d
commit 0c798520e6
1 changed files with 13 additions and 82 deletions

View File

@ -25,8 +25,8 @@ include $(top_srcdir)/icons/Symbolic/icon-list.mk
# %.png: $(top_srcdir)/icons/Symbolic/%.png
# But it doesn't. If someone knows how, feel free to fix it back into
# a single rule.
12/%.png: $(top_srcdir)/icons/Symbolic/12/%.png
mkdir -p `dirname $@`;
MAKE_ICON = mkdir -p `dirname $@`; \
$(GEGL) -x \
"<gegl> \
<node operation='gegl:invert-linear'></node> \
@ -37,101 +37,32 @@ include $(top_srcdir)/icons/Symbolic/icon-list.mk
</node> \
</gegl>" -o $@
12/%.png: $(top_srcdir)/icons/Symbolic/12/%.png
$(MAKE_ICON)
16/%.png: $(top_srcdir)/icons/Symbolic/16/%.png
mkdir -p `dirname $@`;
$(GEGL) -x \
"<gegl> \
<node operation='gegl:invert-linear'></node> \
<node operation='gegl:load'> \
<params> \
<param name='path'>$(top_srcdir)/icons/Symbolic/$@</param> \
</params> \
</node> \
</gegl>" -o $@
$(MAKE_ICON)
18/%.png: $(top_srcdir)/icons/Symbolic/18/%.png
mkdir -p `dirname $@`;
$(GEGL) -x \
"<gegl> \
<node operation='gegl:invert-linear'></node> \
<node operation='gegl:load'> \
<params> \
<param name='path'>$(top_srcdir)/icons/Symbolic/$@</param> \
</params> \
</node> \
</gegl>" -o $@
$(MAKE_ICON)
20/%.png: $(top_srcdir)/icons/Symbolic/20/%.png
mkdir -p `dirname $@`;
$(GEGL) -x \
"<gegl> \
<node operation='gegl:invert-linear'></node> \
<node operation='gegl:load'> \
<params> \
<param name='path'>$(top_srcdir)/icons/Symbolic/$@</param> \
</params> \
</node> \
</gegl>" -o $@
$(MAKE_ICON)
22/%.png: $(top_srcdir)/icons/Symbolic/22/%.png
mkdir -p `dirname $@`;
$(GEGL) -x \
"<gegl> \
<node operation='gegl:invert-linear'></node> \
<node operation='gegl:load'> \
<params> \
<param name='path'>$(top_srcdir)/icons/Symbolic/$@</param> \
</params> \
</node> \
</gegl>" -o $@
$(MAKE_ICON)
24/%.png: $(top_srcdir)/icons/Symbolic/24/%.png
mkdir -p `dirname $@`;
$(GEGL) -x \
"<gegl> \
<node operation='gegl:invert-linear'></node> \
<node operation='gegl:load'> \
<params> \
<param name='path'>$(top_srcdir)/icons/Symbolic/$@</param> \
</params> \
</node> \
</gegl>" -o $@
$(MAKE_ICON)
32/%.png: $(top_srcdir)/icons/Symbolic/32/%.png
mkdir -p `dirname $@`;
$(GEGL) -x \
"<gegl> \
<node operation='gegl:invert-linear'></node> \
<node operation='gegl:load'> \
<params> \
<param name='path'>$(top_srcdir)/icons/Symbolic/$@</param> \
</params> \
</node> \
</gegl>" -o $@
$(MAKE_ICON)
48/%.png: $(top_srcdir)/icons/Symbolic/48/%.png
mkdir -p `dirname $@`;
$(GEGL) -x \
"<gegl> \
<node operation='gegl:invert-linear'></node> \
<node operation='gegl:load'> \
<params> \
<param name='path'>$(top_srcdir)/icons/Symbolic/$@</param> \
</params> \
</node> \
</gegl>" -o $@
$(MAKE_ICON)
64/%.png: $(top_srcdir)/icons/Symbolic/64/%.png
mkdir -p `dirname $@`;
$(GEGL) -x \
"<gegl> \
<node operation='gegl:invert-linear'></node> \
<node operation='gegl:load'> \
<params> \
<param name='path'>$(top_srcdir)/icons/Symbolic/$@</param> \
</params> \
</node> \
</gegl>" -o $@
$(MAKE_ICON)
all_icons = \
$(icons12_DATA) \