diff options
author | obrien <obrien@FreeBSD.org> | 2002-03-05 19:37:12 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2002-03-05 19:37:12 +0000 |
commit | 9a6aca91ddaa8ff64442ea95234385e4e8550f53 (patch) | |
tree | cec4ef88ccd6bf7cfdfc179b6dca9d87fbd0f746 /usr.bin/awk | |
parent | 8c13981ac7f28b68b27ddaf13a164069459791fb (diff) | |
download | FreeBSD-src-9a6aca91ddaa8ff64442ea95234385e4e8550f53.zip FreeBSD-src-9a6aca91ddaa8ff64442ea95234385e4e8550f53.tar.gz |
On the sparc64 platform we install the `1 true AWK' as "awk". On all other
platforms we install as "nawk".
At the moment Gawk is borked on sparc64, however BWK AWK works fine.
Diffstat (limited to 'usr.bin/awk')
-rw-r--r-- | usr.bin/awk/Makefile | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/usr.bin/awk/Makefile b/usr.bin/awk/Makefile index 465fa9b..8cf755b 100644 --- a/usr.bin/awk/Makefile +++ b/usr.bin/awk/Makefile @@ -3,9 +3,13 @@ AWKSRC= ${.CURDIR}/../../contrib/one-true-awk .PATH: ${AWKSRC} +.if ${MACHINE_ARCH} == "sparc64" PROG= awk +.else +PROG= nawk +.endif SRCS= b.c lex.c lib.c main.c parse.c proctab.c run.c tran.c ytab.c ytab.h -MAN1= awk.1 +MAN1= ${PROG}.1 # Important for ctype macros! CFLAGS+= -funsigned-char @@ -14,8 +18,8 @@ CFLAGS+= -I. -I${AWKSRC} DPADD+= ${LIBM} LDADD+= -lm -LINKS+= ${BINDIR}/awk ${BINDIR}/nawk -MLINKS+= awk.1 nawk.1 +#LINKS+= ${BINDIR}/awk ${BINDIR}/nawk +#MLINKS+= awk.1 nawk.1 CLEANFILES+= maketab proctab.c ytab.c ytab.h @@ -33,4 +37,7 @@ build-tools: maketab maketab: ytab.h ${AWKSRC}/maketab.c ${CC} ${CFLAGS} ${AWKSRC}/maketab.c -o maketab +nawk.1: awk.1 + ln -sf ${.ALLSRC} ${.TARGET} + .include <bsd.prog.mk> |