Bring over configure imporvements from dhcpcd.
[dhcpcd-ui] / mk / icon.mk
index 1a62fbd95092c08c21275d435a84e72793321dcf..01040375531f3b55789322c216295a1dd620de6c 100644 (file)
@@ -1,7 +1,8 @@
-include ${MK}/sys.mk
+include ${MKDIR}/sys.mk
 
 SIZEDIR?=      ${SIZE}x${SIZE}
-ICONDIR?=      ${PREFIX}/share/dhcpcd/icons/hicolor/${SIZEDIR}/${CATEGORY}
+ICONDIR?=      ${PREFIX}/share/dhcpcd/icons
+IDIR=          ${ICONDIR}/hicolor/${SIZEDIR}/${CATEGORY}
 
 RSVG_CONVERT?= rsvg-convert
 
@@ -16,8 +17,8 @@ all: ${ICONS}
        ${RSVG_CONVERT} -h ${SIZE} -w ${SIZE} $< >$@
 
 _iconinstall: ${ICONS}
-       ${INSTALL} -d ${DESTDIR}${ICONDIR}
-       ${INSTALL} -m ${BINMODE} ${ICONS} ${DESTDIR}${ICONDIR}
+       ${INSTALL} -d ${DESTDIR}${IDIR}
+       ${INSTALL} -m ${NONBINMODE} ${ICONS} ${DESTDIR}${IDIR}
 
 install: _iconinstall