blob: 0d3135aeb1466fac21df5d68301bc801309faef7 (
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
|
# Copyright: 2008 Gentoo Foundation
# Author(s): Nirbheek Chauhan <nirbheek.chauhan@gmail.com>
# License: AGPL-3
#
INSTALL=install
CONVERT=rsvg-convert --width=96
IMGS=$(shell for svg in *.svg; do printf "$${svg%.svg}.png "; done)
IMGMODE=644
.SUFFIXES: .svg .png
.svg.png:
${CONVERT} -o $*.png $<
all: $(IMGS)
clean:
rm -f $(IMGS)
install: all
test -n "${DESTDIR}" || ( echo "Please define DESTDIR" ; exit 1 )
${INSTALL} -m ${IMGMODE} $(IMGS) -t ${DESTDIR}/master/media/images || exit $$?
uninstall:
for img in $(IMGS); do \
rm -f ${DESTDIR}/master/media/images/$${img}; \
done
|