aboutsummaryrefslogtreecommitdiff
path: root/Mk/bsd.port.mk
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1994-10-03 14:38:27 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1994-10-03 14:38:27 +0000
commit578487c804d6c891e8e853e85fccbb0e2eeb60c2 (patch)
treead7e4752c76056c8d4d1c25ac033a27c82a1dab6 /Mk/bsd.port.mk
parent37e15dac70083e5a48bbc29450320a8dab64bf63 (diff)
downloadports-578487c804d6c891e8e853e85fccbb0e2eeb60c2.tar.gz
ports-578487c804d6c891e8e853e85fccbb0e2eeb60c2.zip
Notes
Diffstat (limited to 'Mk/bsd.port.mk')
-rw-r--r--Mk/bsd.port.mk16
1 files changed, 12 insertions, 4 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index 0a8c599d7913..29aa0eaafadc 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.41 1994/09/28 14:19:30 jkh Exp $
+# $Id: bsd.port.mk,v 1.42 1994/10/03 13:45:03 jkh Exp $
#
# Please view me with 4 column tabs!
@@ -101,6 +101,7 @@ PKGDIR?= ${.CURDIR}/pkg
# Change these if you'd prefer to keep the cookies someplace else.
EXTRACT_COOKIE?= ${WRKDIR}/.extract_done
CONFIGURE_COOKIE?= ${WRKDIR}/.configure_done
+INSTALL_COOKIE?= ${WRKDIR}/.install_done
# How to do nothing. Override if you, for some strange reason, would rather
# do something.
@@ -143,6 +144,10 @@ PKGFILE?= ${DISTNAME}${PKG_SUFX}
.MAIN: all
all: extract configure build
+.if !target(is_depended)
+is_depended: all install
+.endif
+
# The following are used to create easy dummy targets for disabling some
# bit of default target behavior you don't want. They still check to see
# if the target exists, and if so don't do anything, since you might want
@@ -167,7 +172,7 @@ package:
.endif
.if defined(NO_INSTALL) && !target(install)
install:
- @${DO_NADA}
+ @touch -f ${INSTALL_COOKIE}
.endif
# More standard targets start here.
@@ -178,13 +183,16 @@ pre-install:
.endif
.if !target(install)
-install: pre-install
+install: ${INSTALL_COOKIE}
+
+${INSTALL_COOKIE}: pre-install
@echo "===> Installing for ${DISTNAME}"
.if defined(USE_GMAKE)
@(cd ${WRKSRC}; ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} install)
.else defined(USE_GMAKE)
@(cd ${WRKSRC}; ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} install)
.endif
+ @touch -f ${INSTALL_COOKIE}
.endif
.if !target(pre-package)
@@ -218,7 +226,7 @@ build: configure pre-build
if [ ! -d ${PORTSDIR}/$$i ]; then \
echo ">> No directory for ${PORTSDIR}/$$i. Skipping.."; \
else \
- (cd ${PORTSDIR}/$$i; ${MAKE} all install) ; \
+ (cd ${PORTSDIR}/$$i; ${MAKE} is_depended) ; \
fi \
done
@echo "===> Returning to build of ${DISTNAME}"