pkgsrc/mk/package/bsd.package.mk
2009-04-09 00:51:23 +00:00

37 lines
1.2 KiB
Makefile

# $NetBSD: bsd.package.mk,v 1.12 2009/04/09 00:51:23 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
_COOKIE.package= ${WRKDIR}/.package_done
######################################################################
### package (PUBLIC)
######################################################################
### package is a public target to generate a binary package.
###
.PHONY: package
.include "package.mk"
######################################################################
### repackage (PUBLIC)
######################################################################
### repackage is a special target to re-run the package target.
###
.PHONY: repackage
.if !target(repackage)
repackage: package-clean package
.endif
######################################################################
### package-clean (PRIVATE)
######################################################################
### package-clean removes the state files associated with the "package"
### phase so that the "package" target may be re-invoked.
###
package-clean:
${RUN} ${RM} -f ${_COOKIE.package}