From f796269a1d1bab63a6a9a6d60a27b03591e2fdef Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 17 Jan 2011 04:03:25 -0500 Subject: [PATCH] dist.mk: add a standard "distcheck" target Signed-off-by: Mike Frysinger --- mk/dist.mk | 7 +++++++ 1 file changed, 7 insertions(+) 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}