Mercurial > hg > dhcpcd
changeset 4491:410f7c6d6af6 draft dhcpcd-6
Allow make distinfo to work once more.
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Fri, 26 Apr 2019 15:23:22 +0100 |
| parents | 8aeb92e98c71 |
| children | ab55a1553b05 |
| files | Makefile |
| diffstat | 1 files changed, 21 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile Fri Apr 26 15:18:15 2019 +0100 +++ b/Makefile Fri Apr 26 15:23:22 2019 +0100 @@ -51,13 +51,19 @@ DEPEND!= test -e .depend && echo ".depend" || echo "" VERSION!= sed -n 's/\#define VERSION[[:space:]]*"\(.*\)".*/\1/p' defs.h -FOSSILID?= dhcpcd-6 +DIST!= if test -f .fslckout; then echo "dist-fossil"; \ + elif test -d .git; then echo "dist-git"; \ + else echo "dist-inst"; fi +FOSSILID?= current +GITREF?= HEAD -DISTPREFIX?= ${PROG}-${VERSION} +DISTSUFFIX= +DISTPREFIX?= dhcpcd-${VERSION}${DISTSUFFIX} DISTFILEGZ?= ${DISTPREFIX}.tar.gz DISTFILE?= ${DISTPREFIX}.tar.xz DISTINFO= ${DISTFILE}.distinfo DISTINFOSIGN= ${DISTINFO}.asc + CKSUM?= cksum -a SHA256 PGP?= netpgp @@ -148,11 +154,23 @@ rm -f .depend config.h config.mk config.log \ ${DISTFILE} ${DISTFILEGZ} ${DISTINFO} ${DISTINFOSIGN} -dist: +dist-fossil: fossil tarball --name ${DISTPREFIX} ${FOSSILID} ${DISTFILEGZ} gunzip -c ${DISTFILEGZ} | xz >${DISTFILE} rm ${DISTFILEGZ} +dist-git: + git archive --prefix=${DISTPREFIX}/ ${GITREF} | xz >${DISTFILE} + +dist-inst: + mkdir /tmp/${DISTPREFIX} + cp -RPp * /tmp/${DISTPREFIX} + (cd /tmp/${DISTPREFIX}; make clean) + tar -cvjpf ${DISTFILE} -C /tmp ${DISTPREFIX} + rm -rf /tmp/${DISTPREFIX} + +dist: ${DIST} + distinfo: dist rm -f ${DISTINFO} ${DISTINFOSIGN} ${CKSUM} ${DISTFILE} >${DISTINFO}
