1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

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

with something of your own devising.
This commit is contained in:
Jordan K. Hubbard 1995-12-07 14:11:29 +00:00
parent 71bad0ab9c
commit ae07fde778
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=2538

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