Fix compile against libnotify-0.7
[dhcpcd-ui] / Makefile
index 8a5824455e9caabde4cefb9c4a8c75f45e3b6117..d90b4f8f2e3944b9e94c6dfc804e8e65d5f437dc 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,49 @@
 PROG=          dhcpcd-ui
-VERSION=       0.4.2
+VERSION=       0.5.1
 
 .PHONY:                icons
 
 SUBDIR=                src icons
 
-MK=    mk
-include ${MK}/subdir.mk
-include ${MK}/dist.mk
+TOPDIR=                .
+include ${TOPDIR}/config.mk
+include ${MKDIR}/subdir.mk
+
+GITREF?=       HEAD
+DISTPREFIX?=   ${PROG}-${VERSION}
+DISTFILE?=     ${DISTPREFIX}.tar.bz2
+
+CLEANFILES+=   *.tar.bz2
+
+_SNAP_SH=      date -u +%Y%m%d%H%M
+_SNAP!=                ${_SNAP_SH}
+SNAP=          ${_SNAP}$(shell ${_SNAP_SH})
+SNAPDIR=       ${DISTPREFIX}-${SNAP}
+SNAPFILE=      ${SNAPDIR}.tar.bz2
+
+dist:
+       mkdir /tmp/${DISTPREFIX}
+       cp -RPp * /tmp/${DISTPREFIX}
+       (cd /tmp/${DISTPREFIX}; make clean icons; rm config.h config.mk)
+       find /tmp/${DISTPREFIX} -name .gitignore -delete
+       tar -cvjpf ${DISTFILE} -C /tmp ${DISTPREFIX}
+       rm -rf /tmp/${DISTPREFIX}
+       ls -l ${DISTFILE}
+
+distclean:
+       (cd src; make clean)
+       rm -f config.h config.mk
+
+snapshot: icons
+       mkdir /tmp/${SNAPDIR}
+       cp -RPp * /tmp/${SNAPDIR}
+       (cd /tmp/${SNAPDIR}; make clean; rm config.h config.mk)
+       find /tmp/${SNAPDIR} -name .gitignore -delete
+       tar -cvjpf ${SNAPFILE} -C /tmp ${SNAPDIR}
+       rm -rf /tmp/${SNAPDIR}
+       ls -l ${SNAPFILE}
+
+snap: snapshot
 
 icons:
        ${MAKE} -C icons