summaryrefslogtreecommitdiff
path: root/mk/package
diff options
context:
space:
mode:
authorcheusov <cheusov@pkgsrc.org>2012-05-27 14:32:28 +0000
committercheusov <cheusov@pkgsrc.org>2012-05-27 14:32:28 +0000
commit6562382ae0c293340cb9e2b822fe77c6423489eb (patch)
tree2d5ac1dcc597b56b5a2acf31f3dea1459d4c88bb /mk/package
parent179c3c5086ca783bb019104ed682cfb36711e248 (diff)
downloadpkgsrc-6562382ae0c293340cb9e2b822fe77c6423489eb.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"