mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +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:
parent
7fb85a897c
commit
8817550f6f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=308
@ -3,7 +3,7 @@
|
|||||||
# bsd.port.mk - 940820 Jordan K. Hubbard.
|
# bsd.port.mk - 940820 Jordan K. Hubbard.
|
||||||
# This file is in the public domain.
|
# 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!
|
# Please view me with 4 column tabs!
|
||||||
|
|
||||||
@ -110,6 +110,7 @@ PKGDIR?= ${.CURDIR}/pkg
|
|||||||
EXTRACT_COOKIE?= ${WRKDIR}/.extract_done
|
EXTRACT_COOKIE?= ${WRKDIR}/.extract_done
|
||||||
CONFIGURE_COOKIE?= ${WRKDIR}/.configure_done
|
CONFIGURE_COOKIE?= ${WRKDIR}/.configure_done
|
||||||
INSTALL_COOKIE?= ${WRKDIR}/.install_done
|
INSTALL_COOKIE?= ${WRKDIR}/.install_done
|
||||||
|
BUILD_COOKIE?= ${WRKDIR}/.build_done
|
||||||
|
|
||||||
# How to do nothing. Override if you, for some strange reason, would rather
|
# How to do nothing. Override if you, for some strange reason, would rather
|
||||||
# do something.
|
# do something.
|
||||||
@ -124,6 +125,9 @@ MAKEFILE?= Makefile
|
|||||||
NCFTP?= ncftp
|
NCFTP?= ncftp
|
||||||
NCFTPFLAGS?= -N
|
NCFTPFLAGS?= -N
|
||||||
|
|
||||||
|
TOUCH?= touch
|
||||||
|
TOUCH_FLAGS?= -f
|
||||||
|
|
||||||
PATCH?= patch
|
PATCH?= patch
|
||||||
PATCH_STRIP?= -p0
|
PATCH_STRIP?= -p0
|
||||||
PATCH_ARGS?= -d ${WRKSRC} --quiet -E ${PATCH_STRIP}
|
PATCH_ARGS?= -d ${WRKSRC} --quiet -E ${PATCH_STRIP}
|
||||||
@ -200,15 +204,15 @@ is_depended: all install
|
|||||||
# a variable in make!).
|
# a variable in make!).
|
||||||
.if defined(NO_EXTRACT) && !target(extract)
|
.if defined(NO_EXTRACT) && !target(extract)
|
||||||
extract:
|
extract:
|
||||||
@touch -f ${EXTRACT_COOKIE}
|
@${TOUCH} ${TOUCH_FLAGS} ${EXTRACT_COOKIE}
|
||||||
.endif
|
.endif
|
||||||
.if defined(NO_CONFIGURE) && !target(configure)
|
.if defined(NO_CONFIGURE) && !target(configure)
|
||||||
configure:
|
configure:
|
||||||
@touch -f ${CONFIGURE_COOKIE}
|
@${TOUCH} ${TOUCH_FLAGS} ${CONFIGURE_COOKIE}
|
||||||
.endif
|
.endif
|
||||||
.if defined(NO_BUILD) && !target(build)
|
.if defined(NO_BUILD) && !target(build)
|
||||||
build:
|
build:
|
||||||
@${DO_NADA}
|
@${TOUCH} ${TOUCH_FLAGS} ${BUILD_COOKIE}
|
||||||
.endif
|
.endif
|
||||||
.if defined(NO_PACKAGE) && !target(package)
|
.if defined(NO_PACKAGE) && !target(package)
|
||||||
package:
|
package:
|
||||||
@ -216,7 +220,7 @@ package:
|
|||||||
.endif
|
.endif
|
||||||
.if defined(NO_INSTALL) && !target(install)
|
.if defined(NO_INSTALL) && !target(install)
|
||||||
install:
|
install:
|
||||||
@touch -f ${INSTALL_COOKIE}
|
@${TOUCH} ${TOUCH_FLAGS} ${INSTALL_COOKIE}
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
# More standard targets start here.
|
# More standard targets start here.
|
||||||
@ -240,7 +244,7 @@ ${INSTALL_COOKIE}:
|
|||||||
@(cd ${WRKSRC}; ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} install.man)
|
@(cd ${WRKSRC}; ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} install.man)
|
||||||
.endif
|
.endif
|
||||||
.endif
|
.endif
|
||||||
@touch -f ${INSTALL_COOKIE}
|
@${TOUCH} ${TOUCH_FLAGS} ${INSTALL_COOKIE}
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if !target(pre-package)
|
.if !target(pre-package)
|
||||||
@ -265,7 +269,9 @@ pre-build:
|
|||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if !target(build)
|
.if !target(build)
|
||||||
build: configure pre-build
|
build: configure pre-build ${BUILD_COOKIE}
|
||||||
|
|
||||||
|
${BUILD_COOKIE}:
|
||||||
@echo "===> Building for ${DISTNAME}"
|
@echo "===> Building for ${DISTNAME}"
|
||||||
.if defined(DEPENDS)
|
.if defined(DEPENDS)
|
||||||
@echo "===> ${DISTNAME} depends on: ${DEPENDS}"
|
@echo "===> ${DISTNAME} depends on: ${DEPENDS}"
|
||||||
@ -293,6 +299,7 @@ build: configure pre-build
|
|||||||
DEPENDS="${DEPENDS}" \
|
DEPENDS="${DEPENDS}" \
|
||||||
sh ${SCRIPTDIR}/post-build; \
|
sh ${SCRIPTDIR}/post-build; \
|
||||||
fi
|
fi
|
||||||
|
@${TOUCH} ${TOUCH_FLAGS} ${BUILD_COOKIE}
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if !target(pre-configure)
|
.if !target(pre-configure)
|
||||||
@ -339,7 +346,7 @@ ${CONFIGURE_COOKIE}:
|
|||||||
DEPENDS="${DEPENDS}" \
|
DEPENDS="${DEPENDS}" \
|
||||||
sh ${SCRIPTDIR}/post-configure; \
|
sh ${SCRIPTDIR}/post-configure; \
|
||||||
fi
|
fi
|
||||||
@touch -f ${CONFIGURE_COOKIE}
|
@${TOUCH} ${TOUCH_FLAGS} ${CONFIGURE_COOKIE}
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if !target(pre-fetch)
|
.if !target(pre-fetch)
|
||||||
@ -394,7 +401,7 @@ ${EXTRACT_COOKIE}:
|
|||||||
${EXTRACT_CMD} ${EXTRACT_ARGS} ${DISTDIR}/$$file ; \
|
${EXTRACT_CMD} ${EXTRACT_ARGS} ${DISTDIR}/$$file ; \
|
||||||
done
|
done
|
||||||
.endif
|
.endif
|
||||||
@touch -f ${EXTRACT_COOKIE}
|
@${TOUCH} ${TOUCH_FLAGS} ${EXTRACT_COOKIE}
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if !target(pre-clean)
|
.if !target(pre-clean)
|
||||||
|
Loading…
Reference in New Issue
Block a user