diff options
author | jmmv <jmmv@pkgsrc.org> | 2002-12-11 10:21:17 +0000 |
---|---|---|
committer | jmmv <jmmv@pkgsrc.org> | 2002-12-11 10:21:17 +0000 |
commit | 5d548ee07d3a0a9889987399872be809e6bb561d (patch) | |
tree | e5184e87e297a2b5889cf0171acece224d495a2c /lang/nawk | |
parent | 8a386d8d2896deb69a63d0c6cf5e7a48f4f0b571 (diff) | |
download | pkgsrc-5d548ee07d3a0a9889987399872be809e6bb561d.tar.gz |
Quote CFLAGS when passing them to MAKEFLAGS; if they contain spaces, build
will fail. Also fix a "typo" in the manpage (Awk->Nawk). Patch provided by
Christopher Richards in PR pkg/19344.
While I'm here, move manpage generation to the post-build target (where it
should be) and use INSTALL_MAN to install it (instead of generating it in
place).
Diffstat (limited to 'lang/nawk')
-rw-r--r-- | lang/nawk/Makefile | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lang/nawk/Makefile b/lang/nawk/Makefile index e626b058190..144fc1d2b94 100644 --- a/lang/nawk/Makefile +++ b/lang/nawk/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.7 2002/12/09 00:05:27 cjep Exp $ +# $NetBSD: Makefile,v 1.8 2002/12/11 10:21:17 jmmv Exp $ # DISTNAME= awk @@ -14,11 +14,15 @@ DIST_SUBDIR= ${PKGNAME} WRKSRC= ${WRKDIR} MAKEFILE= makefile -MAKEFLAGS+= CC=${CC} YACC=${YACC} CFLAGS=${CFLAGS} +MAKEFLAGS+= CC=${CC} YACC=${YACC} CFLAGS=${CFLAGS:Q} ALL_TARGET= a.out +post-build: + ${SED} -e 's|awk|nawk|g' -e 's/Awk/Nawk/g' \ + ${WRKSRC}/awk.1 > ${WRKSRC}/nawk.1 + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/a.out ${PREFIX}/bin/nawk - ${SED} -e 's|awk|nawk|g' ${WRKSRC}/awk.1 > ${PREFIX}/man/man1/nawk.1 + ${INSTALL_MAN} ${WRKSRC}/nawk.1 ${PREFIX}/man/man1/nawk.1 .include "../../mk/bsd.pkg.mk" |