diff options
-rw-r--r-- | mk/package/bsd.package.mk | 16 |
1 files changed, 14 insertions, 2 deletions
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 @@ -28,6 +28,18 @@ 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) ###################################################################### ### package-eat-cookie removes the state files associated with the "package" |