From 824cc0cc5dc63875b4d6caf2568572f5360da96c Mon Sep 17 00:00:00 2001 From: Satoshi Asami Date: Mon, 17 Apr 1995 06:39:05 +0000 Subject: [PATCH] "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". --- share/mk/bsd.port.mk | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/share/mk/bsd.port.mk b/share/mk/bsd.port.mk index a3a8aae4de5e..15e46bf5cf43 100644 --- a/share/mk/bsd.port.mk +++ b/share/mk/bsd.port.mk @@ -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 \