summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1994-11-01 18:09:22 +0000
committerjkh <jkh@FreeBSD.org>1994-11-01 18:09:22 +0000
commit345918a31d530c2bb157a2ff2c6c7ec4ad1b6c22 (patch)
treec2e1e008d55297390e9c5fa9985ca1a4b6d16638 /share
parent1bf35b8f85376315972b3f4610f4552c2f942f1d (diff)
downloadFreeBSD-src-345918a31d530c2bb157a2ff2c6c7ec4ad1b6c22.zip
FreeBSD-src-345918a31d530c2bb157a2ff2c6c7ec4ad1b6c22.tar.gz
2 changes:
1. Make build rely on a BUILD_COOKIE now. I'm tired of builds being redone gratuitously while I'm trying to debug a tree build problem. 2. Remove all the literal `touch -f' commands and indirect them through variables. This lets you "leave tracks" in different ways, depending on the medium. Just part 1 of my planned changes to make builds directly off the CD work.
Diffstat (limited to 'share')
-rw-r--r--share/mk/bsd.port.mk25
1 files changed, 16 insertions, 9 deletions
diff --git a/share/mk/bsd.port.mk b/share/mk/bsd.port.mk
index 9331264..e395d6c 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.59 1994/10/22 23:02:39 jkh Exp $
+# $Id: bsd.port.mk,v 1.60 1994/10/31 22:51:09 jkh Exp $
#
# Please view me with 4 column tabs!
@@ -110,6 +110,7 @@ PKGDIR?= ${.CURDIR}/pkg
EXTRACT_COOKIE?= ${WRKDIR}/.extract_done
CONFIGURE_COOKIE?= ${WRKDIR}/.configure_done
INSTALL_COOKIE?= ${WRKDIR}/.install_done
+BUILD_COOKIE?= ${WRKDIR}/.build_done
# How to do nothing. Override if you, for some strange reason, would rather
# do something.
@@ -124,6 +125,9 @@ MAKEFILE?= Makefile
NCFTP?= ncftp
NCFTPFLAGS?= -N
+TOUCH?= touch
+TOUCH_FLAGS?= -f
+
PATCH?= patch
PATCH_STRIP?= -p0
PATCH_ARGS?= -d ${WRKSRC} --quiet -E ${PATCH_STRIP}
@@ -200,15 +204,15 @@ is_depended: all install
# a variable in make!).
.if defined(NO_EXTRACT) && !target(extract)
extract:
- @touch -f ${EXTRACT_COOKIE}
+ @${TOUCH} ${TOUCH_FLAGS} ${EXTRACT_COOKIE}
.endif
.if defined(NO_CONFIGURE) && !target(configure)
configure:
- @touch -f ${CONFIGURE_COOKIE}
+ @${TOUCH} ${TOUCH_FLAGS} ${CONFIGURE_COOKIE}
.endif
.if defined(NO_BUILD) && !target(build)
build:
- @${DO_NADA}
+ @${TOUCH} ${TOUCH_FLAGS} ${BUILD_COOKIE}
.endif
.if defined(NO_PACKAGE) && !target(package)
package:
@@ -216,7 +220,7 @@ package:
.endif
.if defined(NO_INSTALL) && !target(install)
install:
- @touch -f ${INSTALL_COOKIE}
+ @${TOUCH} ${TOUCH_FLAGS} ${INSTALL_COOKIE}
.endif
# More standard targets start here.
@@ -240,7 +244,7 @@ ${INSTALL_COOKIE}:
@(cd ${WRKSRC}; ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} install.man)
.endif
.endif
- @touch -f ${INSTALL_COOKIE}
+ @${TOUCH} ${TOUCH_FLAGS} ${INSTALL_COOKIE}
.endif
.if !target(pre-package)
@@ -265,7 +269,9 @@ pre-build:
.endif
.if !target(build)
-build: configure pre-build
+build: configure pre-build ${BUILD_COOKIE}
+
+${BUILD_COOKIE}:
@echo "===> Building for ${DISTNAME}"
.if defined(DEPENDS)
@echo "===> ${DISTNAME} depends on: ${DEPENDS}"
@@ -293,6 +299,7 @@ build: configure pre-build
DEPENDS="${DEPENDS}" \
sh ${SCRIPTDIR}/post-build; \
fi
+ @${TOUCH} ${TOUCH_FLAGS} ${BUILD_COOKIE}
.endif
.if !target(pre-configure)
@@ -339,7 +346,7 @@ ${CONFIGURE_COOKIE}:
DEPENDS="${DEPENDS}" \
sh ${SCRIPTDIR}/post-configure; \
fi
- @touch -f ${CONFIGURE_COOKIE}
+ @${TOUCH} ${TOUCH_FLAGS} ${CONFIGURE_COOKIE}
.endif
.if !target(pre-fetch)
@@ -394,7 +401,7 @@ ${EXTRACT_COOKIE}:
${EXTRACT_CMD} ${EXTRACT_ARGS} ${DISTDIR}/$$file ; \
done
.endif
- @touch -f ${EXTRACT_COOKIE}
+ @${TOUCH} ${TOUCH_FLAGS} ${EXTRACT_COOKIE}
.endif
.if !target(pre-clean)
OpenPOWER on IntegriCloud