summaryrefslogtreecommitdiff
path: root/mk/package
diff options
context:
space:
mode:
authorcheusov <cheusov>2012-05-27 14:32:28 +0000
committercheusov <cheusov>2012-05-27 14:32:28 +0000
commitb6cfd6043868e9e2bbb963a8952d247cc8d4050a (patch)
tree2d5ac1dcc597b56b5a2acf31f3dea1459d4c88bb /mk/package
parentd5d79715c484884a55bf562fe5c1c22fe01500df (diff)
downloadpkgsrc-b6cfd6043868e9e2bbb963a8952d247cc8d4050a.tar.gz
"rebuild" and "retest" targets were added (by analogy with "reinstall").
rebuild is a special target to re-run the build target. retest is a special target to re-run the test target.
Diffstat (limited to 'mk/package')
-rw-r--r--mk/package/bsd.package.mk12
1 files changed, 11 insertions, 1 deletions
diff --git a/mk/package/bsd.package.mk b/mk/package/bsd.package.mk
index 57b7868cdeb..27a7de50166 100644
--- a/mk/package/bsd.package.mk
+++ b/mk/package/bsd.package.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.package.mk,v 1.14 2010/03/08 13:51:24 joerg Exp $
+# $NetBSD: bsd.package.mk,v 1.15 2012/05/27 14:32:28 cheusov Exp $
#
# This Makefile fragment is included by bsd.pkg.mk and provides all
# variables and targets related to binary packages.
@@ -40,6 +40,16 @@ package-clean: package-eat-cookie
${RUN} ${RM} -f ${PKGFILE}
######################################################################
+### _package-clean (PRIVATE)
+######################################################################
+### _package-clean removes the state files for the "_package-clean" and
+### later phases so that the "test" target may be re-invoked.
+###
+.PHONY: _package-clean
+_package-clean: package-eat-cookie plist-clean check-files-clean
+ ${RUN} ${RM} -rf ${DESTDIR}
+
+######################################################################
### package-eat-cookie (PRIVATE)
######################################################################
### package-eat-cookie removes the state files associated with the "package"