aboutsummaryrefslogtreecommitdiff
blob: 09c218a64dae96eaa39004139016d1586152eef7 (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
# Copyright: 2008 Gentoo Foundation
# Author(s): Nirbheek Chauhan <nirbheek.chauhan@gmail.com>
# 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

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

clean:
	rm -f ${IMGS} ${IMGS_MEDIUM}

install: all
	test -n "${DESTDIR}" || ( echo "Please define DESTDIR" ; exit 1 )
	${INSTALL} -m ${IMGMODE} ${IMGS} ${IMGS_MEDIUM} -t ${DESTDIR}/master/media/images || exit $$?

uninstall:
	for img in ${IMGS} ${IMGS_MEDIUM}; do rm -f ${DESTDIR}/master/media/images/$$img; done