diff options
author | bde <bde@FreeBSD.org> | 1994-11-14 05:57:36 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1994-11-14 05:57:36 +0000 |
commit | a0b97b8906b7873c1b4065f60da627f3d5d7c566 (patch) | |
tree | 0ea44d391077b3d970f3b31ccbb2c8e69a37f6f8 /gnu | |
parent | 91436a2279660a8d3be3ca6ba8e793d65d9ffde1 (diff) | |
download | FreeBSD-src-a0b97b8906b7873c1b4065f60da627f3d5d7c566.zip FreeBSD-src-a0b97b8906b7873c1b4065f60da627f3d5d7c566.tar.gz |
Clean up some foreign makefiles a bit, attempting to handle .sh files
more like binaries. This is hard to do using a general rules because
the natural `.sh:' rule has a null suffix and null suffixes are broken.
(With 1.1.5's make they sometimes work and sometimes cause core dumps.
2.0's make has a botched fixed and they never work.)
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/usr.bin/man/catman/Makefile | 27 | ||||
-rw-r--r-- | gnu/usr.bin/man/makewhatis/Makefile | 19 |
2 files changed, 30 insertions, 16 deletions
diff --git a/gnu/usr.bin/man/catman/Makefile b/gnu/usr.bin/man/catman/Makefile index f4bd03f..a66ae9e 100644 --- a/gnu/usr.bin/man/catman/Makefile +++ b/gnu/usr.bin/man/catman/Makefile @@ -1,15 +1,26 @@ +FILES= catman NOMAN= noman -CLEANFILES= catman -beforeinstall: catman - install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ - catman ${DESTDIR}${BINDIR} +CLEANFILES+= ${FILES} -.include <bsd.prog.mk> +all: ${FILES} +# XXX null suffixes are currently broken +# .SUFFIXES: +# .SUFFIXES: .sh +# .sh: +# sed -e 's,%compress%,${compress},' \ +# -e 's,%compext%,${compext},' \ +# -e 's,%zcat%,${zcat},' \ +# ${.IMPSRC} > ${.TARGET} catman: catman.sh sed -e 's,%compress%,${compress},' \ - -e 's,%compext%,${compext},' \ - -e 's,%zcat%,${zcat},' \ - ${.CURDIR}/catman.sh > catman + -e 's,%compext%,${compext},' \ + -e 's,%zcat%,${zcat},' \ + ${.CURDIR}/${.TARGET}.sh > ${.TARGET} +install: + install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ + ${FILES} ${DESTDIR}${BINDIR} + +.include <bsd.prog.mk> diff --git a/gnu/usr.bin/man/makewhatis/Makefile b/gnu/usr.bin/man/makewhatis/Makefile index bd14975..9849995 100644 --- a/gnu/usr.bin/man/makewhatis/Makefile +++ b/gnu/usr.bin/man/makewhatis/Makefile @@ -1,17 +1,20 @@ # @(#)Makefile 5.6 (Berkeley) 6/23/90 +FILES= makewhatis NOMAN= noman -CLEANFILES= makewhatis -beforeinstall: makewhatis - install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ - makewhatis ${DESTDIR}${BINDIR} +CLEANFILES+= ${FILES} -.include <bsd.prog.mk> +all: ${FILES} makewhatis: makewhatis.sh sed -e 's/%sections%/ "1", "n", "l", "6", "8", "2", "3", "4", "5", "7", "p", "o", NULL/' \ - -e 's,%zcat%,${zcat},' \ - -e 's,%compext%,${compext},' \ - ${.CURDIR}/makewhatis.sh > makewhatis + -e 's,%compext%,${compext},' \ + -e 's,%zcat%,${zcat},' \ + ${.CURDIR}/${.TARGET}.sh > ${.TARGET} +install: + install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ + ${FILES} ${DESTDIR}${BINDIR} + +.include <bsd.prog.mk> |