Build icons for distribution. dhcpcd-ui-0.4.2
authorRoy Marples <roy@marples.name>
Sat, 5 Sep 2009 21:40:31 +0000 (21:40 +0000)
committerRoy Marples <roy@marples.name>
Sat, 5 Sep 2009 21:40:31 +0000 (21:40 +0000)
This removes any packages dependencies for building SVG images.

Makefile
mk/dist.mk

index 322695755ddf314251da1a2c6d1103d3fcf4a4a5..8a5824455e9caabde4cefb9c4a8c75f45e3b6117 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,13 @@
 PROG=          dhcpcd-ui
-VERSION=       0.4.1
+VERSION=       0.4.2
+
+.PHONY:                icons
 
 SUBDIR=                src icons
 
 MK=    mk
 include ${MK}/subdir.mk
 include ${MK}/dist.mk
+
+icons:
+       ${MAKE} -C icons
index eeffe86f5ccf467d65171a92fccb48b13951f445..8c41f885c33b376cfa74184f8c1aaa9970fb0622 100644 (file)
@@ -14,9 +14,14 @@ SNAPDIR=     ${DISTPREFIX}-${SNAP}
 SNAPFILE=      ${SNAPDIR}.tar.bz2
 
 dist:
-       git archive --prefix=${DISTPREFIX}/ ${GITREF} | bzip2 > ${DISTFILE}
+       mkdir /tmp/${DISTPREFIX}
+       cp -RPp * /tmp/${DISTPREFIX}
+       (cd /tmp/${DISTPREFIX}; make clean icons)
+       tar -cvjpf ${DISTFILE} -C /tmp ${DISTPREFIX}
+       rm -rf /tmp/${DISTPREFIX}
+       ls -l ${DISTFILE}
 
-snapshot:
+snapshot: icons
        mkdir /tmp/${SNAPDIR}
        cp -RPp * /tmp/${SNAPDIR}
        (cd /tmp/${SNAPDIR}; make clean)