1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

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.
This commit is contained in:
Jordan K. Hubbard 1994-11-01 18:09:22 +00:00
parent 7fb85a897c
commit 8817550f6f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=308

View File

@ -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)