aboutsummaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-01-17 04:03:25 -0500
committerMike Frysinger <vapier@gentoo.org>2011-01-17 04:03:25 -0500
commitf796269a1d1bab63a6a9a6d60a27b03591e2fdef (patch)
tree7c1e4076f6e00f9636de447c28f9fb3f0ae98a35 /mk
parentb2d0656814c2afe9a05b3e130f0289b225a371ec (diff)
dist.mk: add a standard "distcheck" target
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'mk')
-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}