Fixes for target "repackage"

This commit is contained in:
cheusov 2012-10-02 22:45:47 +00:00
parent 04b95bcf7b
commit 5789ba0f29

View file

@ -1,4 +1,4 @@
# $NetBSD: bsd.package.mk,v 1.15 2012/05/27 14:32:28 cheusov Exp $
# $NetBSD: bsd.package.mk,v 1.16 2012/10/02 22:45:47 cheusov Exp $
#
# This Makefile fragment is included by bsd.pkg.mk and provides all
# variables and targets related to binary packages.
@ -23,9 +23,8 @@ _COOKIE.package= ${WRKDIR}/.package_done
### repackage is a special target to re-run the package target.
###
.PHONY: repackage
.if !target(repackage)
repackage: package-eat-cookie package
.endif
repackage: _package-clean
${RUN} ${RECURSIVE_MAKE} ${MAKEFLAGS} package
######################################################################
### package-clean (PUBLIC)
@ -43,7 +42,7 @@ package-clean: package-eat-cookie
### _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.
### later phases so that the "package" target may be re-invoked.
###
.PHONY: _package-clean
_package-clean: package-eat-cookie plist-clean check-files-clean
@ -56,4 +55,4 @@ _package-clean: package-eat-cookie plist-clean check-files-clean
### phase so that the "package" target may be re-invoked.
###
package-eat-cookie:
${RUN} ${RM} -f ${_COOKIE.package}
${RUN} ${RM} -f ${_COOKIE.package} ${_COOKIE.install}