Use git
[dhcpcd-ui] / mk / icon.mk
1 include ${MK}/sys.mk
2
3 SIZEDIR?=       ${SIZE}x${SIZE}
4 ICONDIR?=       ${PREFIX}/share/dhcpcd/icons/hicolor/${SIZEDIR}/${CATEGORY}
5
6 RSVG_CONVERT?=  rsvg-convert
7
8 ICONS+=         ${SRCS:.svg=.png}
9 CLEANFILES+=    ${SRCS:.svg=.png}
10
11 .SUFFIXES: .svg .png
12
13 all: ${ICONS}
14
15 .svg.png:
16         ${RSVG_CONVERT} -h ${SIZE} -w ${SIZE} $< >$@
17
18 _iconinstall: ${ICONS}
19         ${INSTALL} -d ${DESTDIR}${ICONDIR}
20         ${INSTALL} -m ${NONBINMODE} ${ICONS} ${DESTDIR}${ICONDIR}
21
22 install: _iconinstall
23
24 clean:
25         rm -f ${CLEANFILES}