diff options
author | fenner <fenner@FreeBSD.org> | 1997-01-14 08:02:05 +0800 |
---|---|---|
committer | fenner <fenner@FreeBSD.org> | 1997-01-14 08:02:05 +0800 |
commit | b0a72dc83fcb078aeb8f62dbe10fa34df888b991 (patch) | |
tree | d84407fbc14ba26e3d834d0dd8a2598ab24d48c8 /mbone | |
parent | 7d16f1976d258cf0b9e1d69b03dc71db46462abe (diff) | |
download | freebsd-ports-gnome-b0a72dc83fcb078aeb8f62dbe10fa34df888b991.tar.gz freebsd-ports-gnome-b0a72dc83fcb078aeb8f62dbe10fa34df888b991.tar.zst freebsd-ports-gnome-b0a72dc83fcb078aeb8f62dbe10fa34df888b991.zip |
Use ${WRKSRC} instead of a hard-coded work/ by moving some
targets below the .include <bsd.port.mk>
Diffstat (limited to 'mbone')
-rw-r--r-- | mbone/nte/Makefile | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/mbone/nte/Makefile b/mbone/nte/Makefile index 514f191f91de..ed84650c407a 100644 --- a/mbone/nte/Makefile +++ b/mbone/nte/Makefile @@ -3,7 +3,7 @@ # Date created: 5 September 1996 # Whom: Bill Fenner <fenner@FreeBSD.ORG> # -# $Id: Makefile,v 1.3 1996/11/26 11:21:25 asami Exp $ +# $Id: Makefile,v 1.4 1996/12/16 16:50:53 fenner Exp $ # DISTNAME= nt.1.5a23 @@ -26,13 +26,16 @@ USE_X11= yes # Pass this on to our child MAKE_ENV= TK_SRC=${TK_SRC} +.include <bsd.port.mk> + #DISGUSTING HACK ALERT #Although nte includes an hsearch.c for those who don't have it in # libc, there's no way to get the default Makefile to build it. # So we build it here. -pre-build: work/freebsd/hsearch.o +#This is below the .include <bsd.port.mk> since variable names in +# targets or dependencies are evaluated when they are read so +# bsd.port.mk must have defined ${WRKSRC} already. +pre-build: ${WRKSRC}/freebsd/hsearch.o -work/freebsd/hsearch.o: work/src/hsearch.c - ${CC} -Iwork/src ${CFLAGS} -c -o $@ work/src/hsearch.c - -.include <bsd.port.mk> +${WRKSRC}/freebsd/hsearch.o: ${WRKSRC}/src/hsearch.c + ${CC} -I${WRKSRC}/src ${CFLAGS} -c -o $@ ${WRKSRC}/src/hsearch.c |