diff options
Diffstat (limited to 'master/icons/Makefile')
-rw-r--r-- | master/icons/Makefile | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/master/icons/Makefile b/master/icons/Makefile index 736d2f5..04df378 100644 --- a/master/icons/Makefile +++ b/master/icons/Makefile @@ -3,19 +3,24 @@ # License: AGPL-3 # -INSTALL=install -CONVERT=rsvg-convert --height=96 -CONVERT_MEDIUM=rsvg-convert --height=48 -IMGS=jobs.png master.png slaves.png users.png -IMGS_MEDIUM=autotua.png home.png login.png logout.png password.png -IMGMODE=644 +INSTALL := install +CONVERT := rsvg-convert +SIMGS := autotua.svg home.svg login.svg logout.svg password.svg +SIMGS_L := jobs.svg master.svg slaves.svg users.svg +IMGS := $(SIMGS:.svg=.png) +IMGS_L := $(SIMGS_L:.svg=-large.png) +IMGMODE := 644 -all: - for img in ${IMGS}; do ${CONVERT} -o $$img $${img%.png}.svg; done - for img in ${IMGS_MEDIUM}; do ${CONVERT_MEDIUM} -o $$img $${img%.png}.svg; done +%.png: %.svg + $(CONVERT) --height=48 -o $@ $< + +%-large.png: %.svg + $(CONVERT) --height=96 -o $@ $< + +all: $(IMGS) $(IMGS_L) clean: - rm -f ${IMGS} ${IMGS_MEDIUM} + rm -f *.png install: all test -n "${DESTDIR}" || ( echo "Please define DESTDIR" ; exit 1 ) |