# Copyright: 2008-2009 Gentoo Foundation # Author(s): Nirbheek Chauhan # License: AGPL-3 # 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 %.png: %.svg $(CONVERT) --height=48 -o $@ $< %-large.png: %.svg $(CONVERT) --height=96 -o $@ $< all: $(IMGS) $(IMGS_L) clean: rm -f *.png install: all test -n "${DESTDIR}" || ( echo "Please define DESTDIR" ; exit 1 ) ${INSTALL} -m ${IMGMODE} ${IMGS} ${IMGS_MEDIUM} ${DESTDIR}/master/media/images || exit $$? uninstall: for img in ${IMGS} ${IMGS_MEDIUM}; do rm -f ${DESTDIR}/master/media/images/$$img; done