5 include ${TOPDIR}/iconfig.mk
6 include ${MKDIR}/subdir.mk
10 SUBDIR= src ${MKICONS}
13 DISTPREFIX?= ${PROG}-${VERSION}
14 DISTFILE?= ${DISTPREFIX}.tar.bz2
16 CLEANFILES+= *.tar.bz2
18 _SNAP_SH= date -u +%Y%m%d%H%M
20 SNAP= ${_SNAP}$(shell ${_SNAP_SH})
21 SNAPDIR= ${DISTPREFIX}-${SNAP}
22 SNAPFILE= ${SNAPDIR}.tar.bz2
25 mkdir /tmp/${DISTPREFIX}
26 cp -RPp * /tmp/${DISTPREFIX}
27 (cd /tmp/${DISTPREFIX}; \
28 ./configure; make clean icons; rm config.h config.mk)
29 find /tmp/${DISTPREFIX} -name .gitignore -delete
30 tar -cvjpf ${DISTFILE} -C /tmp ${DISTPREFIX}
31 rm -rf /tmp/${DISTPREFIX}
36 rm -f config.h config.mk config.log
40 cp -RPp * /tmp/${SNAPDIR}
41 (cd /tmp/${SNAPDIR}; make clean; rm config.h config.mk)
42 find /tmp/${SNAPDIR} -name .gitignore -delete
43 tar -cvjpf ${SNAPFILE} -C /tmp ${SNAPDIR}
44 rm -rf /tmp/${SNAPDIR}