diff options
author | jkh <jkh@FreeBSD.org> | 1995-12-07 22:11:29 +0800 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1995-12-07 22:11:29 +0800 |
commit | ff5ea3b5a79c3ba8349cc1b0efafc8263bb83222 (patch) | |
tree | 7ef40beb45676f0215c3cbbdff5671644474e60b | |
parent | 0d4565013ee8e6bbdb197f108b0553a48ff7499c (diff) | |
download | freebsd-ports-gnome-ff5ea3b5a79c3ba8349cc1b0efafc8263bb83222.tar.gz freebsd-ports-gnome-ff5ea3b5a79c3ba8349cc1b0efafc8263bb83222.tar.zst freebsd-ports-gnome-ff5ea3b5a79c3ba8349cc1b0efafc8263bb83222.zip |
Add support for ALL_HOOK feature. Lets you replace the `all' target
with something of your own devising.
-rw-r--r-- | Mk/bsd.port.mk | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk index 408996ddaa11..ede3b84c3e6c 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.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 |