diff options
author | asami <asami@FreeBSD.org> | 1995-04-17 06:39:05 +0000 |
---|---|---|
committer | asami <asami@FreeBSD.org> | 1995-04-17 06:39:05 +0000 |
commit | 8a63a95cd26d479c1ed81fbb4c87887921280283 (patch) | |
tree | 339fe89539d4001a6aee5af7ec9ac0d657cde546 | |
parent | c8023ab6dcc3fd81b764e20ddd34a7d53c0f6633 (diff) | |
download | FreeBSD-src-8a63a95cd26d479c1ed81fbb4c87887921280283.zip FreeBSD-src-8a63a95cd26d479c1ed81fbb4c87887921280283.tar.gz |
"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".
-rw-r--r-- | share/mk/bsd.port.mk | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/share/mk/bsd.port.mk b/share/mk/bsd.port.mk index a3a8aae..15e46bf 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 \ |