Commit 0c798520 authored by Michael Natterer's avatar Michael Natterer 😴

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

and use that variable instead of repeating the recipe for each icon size.
parent e9a38c32
......@@ -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) \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment