Add support for ALL_HOOK feature. Lets you replace the `all' target

with something of your own devising.
This commit is contained in:
jkh 1995-12-07 14:11:29 +00:00
parent 1500c50563
commit a39412be50

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.187 1995/11/17 16:49:40 asami Exp $
# $Id: bsd.port.mk,v 1.188 1995/11/26 12:35:49 asami Exp $
#
# Please view me with 4 column tabs!
@ -406,6 +406,18 @@ package:
@${DO_NADA}
.endif
.if defined(ALL_HOOK)
all:
@/usr/bin/env CURDIR=${.CURDIR} DISTNAME=${DISTNAME} \
DISTDIR=${DISTDIR} WRKDIR=${WRKDIR} WRKSRC=${WRKSRC} \
PATCHDIR=${PATCHDIR} SCRIPTDIR=${SCRIPTDIR} \
FILESDIR=${FILESDIR} PORTSDIR=${PORTSDIR} PREFIX=${PREFIX} \
DEPENDS="${DEPENDS}" BUILD_DEPENDS="${BUILD_DEPENDS}" \
RUN_DEPENDS="${RUN_DEPENDS}" X11BASE=${X11BASE} \
${ALL_HOOK}
.endif
.if !target(all)
all: build
.endif