summaryrefslogtreecommitdiff
path: root/Mk/bsd.port.mk
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1994-11-01 18:09:22 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1994-11-01 18:09:22 +0000
commit8817550f6ff500eff973ef3dd55091af93f6db9d (patch)
tree84f83b67211f10863173bc32834555b3d9d529a7 /Mk/bsd.port.mk
parentThe Sather 1.0 language. (diff)
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.
Notes
Notes: svn path=/head/; revision=308
Diffstat (limited to 'Mk/bsd.port.mk')
-rw-r--r--Mk/bsd.port.mk25
1 files changed, 16 insertions, 9 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index 9331264bba42..e395d6c0ced7 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.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)