diff options
author | jkh <jkh@FreeBSD.org> | 1994-10-13 08:08:56 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1994-10-13 08:08:56 +0000 |
commit | 5ab0f2cd92dd4b4e012ed0d6fc8c3458b5bd52ad (patch) | |
tree | b6b19e3302c4d593d04551d0031f985198ab5fec /Mk | |
parent | bd67c735dffbbe4f35d8ef1b79d837ac22db4e40 (diff) | |
download | FreeBSD-ports-5ab0f2cd92dd4b4e012ed0d6fc8c3458b5bd52ad.zip FreeBSD-ports-5ab0f2cd92dd4b4e012ed0d6fc8c3458b5bd52ad.tar.gz |
Change the way pre-install was done after a suggestion from Andrew.
Now both pre-install and install inherit the INSTALL_COOKIE.
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/bsd.port.mk | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk index 9e39894..b1c6f74 100644 --- a/Mk/bsd.port.mk +++ b/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.52 1994/10/12 03:25:59 ache Exp $ +# $Id: bsd.port.mk,v 1.53 1994/10/12 23:32:32 jkh Exp $ # # Please view me with 4 column tabs! @@ -192,10 +192,11 @@ pre-install: .endif .if !target(install) -install: pre-install ${INSTALL_COOKIE} +install: ${INSTALL_COOKIE} ${INSTALL_COOKIE}: @echo "===> Installing for ${DISTNAME}" + ${MAKE} pre-install .if defined(USE_GMAKE) @(cd ${WRKSRC}; ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} install) .else defined(USE_GMAKE) @@ -262,14 +263,11 @@ pre-configure: .endif .if !target(configure) -# This is done with a .configure because configures are often expensive, -# and you don't want it done again gratuitously when you're trying to get -# a make of the whole tree to work. configure: extract ${CONFIGURE_COOKIE} ${CONFIGURE_COOKIE}: @echo "===> Configuring for ${DISTNAME}" - ${MAKE} ${MAKEFLAGS} pre-configure + ${MAKE} pre-configure @if [ -d ${PATCHDIR} ]; then \ echo "===> Applying patches for ${DISTNAME}" ; \ for i in ${PATCHDIR}/patch-*; do \ @@ -370,7 +368,7 @@ pre-clean: .if !target(clean) clean: pre-clean @echo "===> Cleaning for ${DISTNAME}" - @rm -f ${EXTRACT_COOKIE} ${CONFIGURE_COOKIE} + @rm -f ${EXTRACT_COOKIE} ${CONFIGURE_COOKIE} ${INSTALL_COOKIE} @rm -rf ${WRKDIR} .endif |