summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2014-01-03 17:16:12 +0000
committerRoy Marples <roy@marples.name>2014-01-03 17:16:12 +0000
commitb3c55f23df5dc674e14f9df1c3b1ec26b1185c77 (patch)
tree6db007a6fa2516f178c90f59744725d22a663e09 /Makefile
parent172f26b97e22cdbf10c2b6db05d138ab1421d5d3 (diff)
downloaddhcpcd-b3c55f23df5dc674e14f9df1c3b1ec26b1185c77.tar.xz
Change configure to detect fossil for debugging.
Make dist now exports the current fossil checkin. Remove old .git files.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 86c07bf5..4d831ab4 100644
--- a/Makefile
+++ b/Makefile
@@ -48,8 +48,10 @@ _VERSION_SH= sed -n 's/\#define VERSION[[:space:]]*"\(.*\)".*/\1/p' defs.h
_VERSION!= ${_VERSION_SH}
VERSION= ${_VERSION}$(shell ${_VERSION_SH})
-GITREF?= HEAD
+FOSSILID?= current
+
DISTPREFIX?= ${PROG}-${VERSION}
+DISTFILEGZ?= ${DISTPREFIX}.tar.gz
DISTFILE?= ${DISTPREFIX}.tar.bz2
HOST_SH?= /bin/sh
@@ -130,7 +132,9 @@ distclean: clean
rm -f .depend config.h config.mk
dist:
- git archive --prefix=${DISTPREFIX}/ ${GITREF} | bzip2 > ${DISTFILE}
+ fossil tarball --name ${DISTPREFIX} ${FOSSILID} ${DISTFILEGZ}
+ gunzip -c ${DISTFILEGZ} | bzip2 >${DISTFILE}
+ rm ${DISTFILEGZ}
import: ${SRCS}
rm -rf /tmp/${DISTPREFIX}