aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mk/dist.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/mk/dist.mk b/mk/dist.mk
index 24ce130d..7c8d9c10 100644
--- a/mk/dist.mk
+++ b/mk/dist.mk
@@ -17,6 +17,13 @@ SNAPFILE= ${SNAPDIR}.tar.bz2
dist:
git archive --prefix=${DISTPREFIX}/ ${GITREF} | bzip2 > ${DISTFILE}
+distcheck: dist
+ rm -rf ${DISTPREFIX}
+ tar xf ${DISTFILE}
+ MAKEFLAGS= $(MAKE) -C ${DISTPREFIX}
+ MAKEFLAGS= $(MAKE) -C ${DISTPREFIX} check
+ rm -rf ${DISTPREFIX}
+
snapshot:
rm -rf /tmp/${SNAPDIR}
mkdir /tmp/${SNAPDIR}