"package" now depends on "install", so we can do "make -k package" from

the top level and have the build-package sequence of each port work
together.

For the old behavior (i.e, just go ahead and blindly pack everything up,
regardless of the contents of work/), there is a new target "repackage".
This commit is contained in:
Satoshi Asami 1995-04-17 06:39:05 +00:00
parent 19eddad0a8
commit 824cc0cc5d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=7900

View File

@ -3,7 +3,7 @@
# bsd.port.mk - 940820 Jordan K. Hubbard.
# This file is in the public domain.
#
# $Id: bsd.port.mk,v 1.138 1995/04/15 23:56:29 asami Exp $
# $Id: bsd.port.mk,v 1.139 1995/04/17 06:28:15 asami Exp $
#
# Please view me with 4 column tabs!
@ -349,6 +349,10 @@ build:
package:
@${DO_NADA}
.endif
.if defined(NO_PACKAGE) && !target(repackage)
repackage:
@${DO_NADA}
.endif
.if defined(NO_INSTALL) && !target(install)
install:
@${TOUCH} ${TOUCH_FLAGS} ${INSTALL_COOKIE}
@ -442,7 +446,19 @@ pre-package:
.endif
.if !target(package)
package: pre-package
package: install
@${MAKE} ${.MAKEFLAGS} pre-package
@${MAKE} ${.MAKEFLAGS} do-package
.endif
.if !target(repackage)
repackage:
@${MAKE} ${.MAKEFLAGS} pre-package
@${MAKE} ${.MAKEFLAGS} do-package
.endif
.if !target(do-package)
do-package:
@if [ -e ${PKGDIR}/PLIST ]; then \
${ECHO_MSG} "===> Building package for ${DISTNAME}"; \
if [ -d ${PACKAGES} ]; then \