From 5b4d74801c9f34b401b7afe94fc0da2c32b062e3 Mon Sep 17 00:00:00 2001 From: joerg Date: Mon, 8 Mar 2010 13:51:24 +0000 Subject: Add a new package-clean target to remove the binary package again. --- mk/package/bsd.package.mk | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'mk/package') diff --git a/mk/package/bsd.package.mk b/mk/package/bsd.package.mk index d1c68327081..57b7868cdeb 100644 --- a/mk/package/bsd.package.mk +++ b/mk/package/bsd.package.mk @@ -1,11 +1,11 @@ -# $NetBSD: bsd.package.mk,v 1.13 2010/02/25 01:03:44 joerg Exp $ +# $NetBSD: bsd.package.mk,v 1.14 2010/03/08 13:51:24 joerg Exp $ # # This Makefile fragment is included by bsd.pkg.mk and provides all # variables and targets related to binary packages. # # The following are the "public" targets provided by this module: # -# package, repackage +# package, repackage, package-clean _COOKIE.package= ${WRKDIR}/.package_done @@ -27,6 +27,18 @@ _COOKIE.package= ${WRKDIR}/.package_done repackage: package-eat-cookie package .endif +###################################################################### +### package-clean (PUBLIC) +###################################################################### +### package-clean removes the binary package that has been created +### by the "package" phase. +### Also remove the cookie, so that the "package" target can be +### invoked again. +### +.PHONY: package-clean +package-clean: package-eat-cookie + ${RUN} ${RM} -f ${PKGFILE} + ###################################################################### ### package-eat-cookie (PRIVATE) ###################################################################### -- cgit v1.2.3