aboutsummaryrefslogtreecommitdiff
blob: 04df37811aab371c134800046f6e1be38401b46b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Copyright: 2008 Gentoo Foundation
# Author(s): Nirbheek Chauhan <nirbheek.chauhan@gmail.com>
# 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