diff options
author | bde <bde@FreeBSD.org> | 1995-10-21 14:27:19 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1995-10-21 14:27:19 +0000 |
commit | 881e8e183941407208a17c59b396580c095767f4 (patch) | |
tree | f0aae1f82bd777b195690a11edc2739e59a16f56 /gnu/usr.bin/man/whatis/Makefile | |
parent | 893cc720a8d4171171d07f89ba59ae801e46ff96 (diff) | |
download | FreeBSD-src-881e8e183941407208a17c59b396580c095767f4.zip FreeBSD-src-881e8e183941407208a17c59b396580c095767f4.tar.gz |
Rewrite and merge some bogus makefiles to create Makefile.shprog. Just
include this in the old makefiles.
I intended to fix only the private maninstall rule but found a lot of
other bogons and bugs:
- strong resistance to installing the program anywhere other than
${DESTDIR}/usr/bin (first, ../../Makefile.inc was not included.
../Makefile/inc was redundantly included instead. Second, /usr/bin
was hard coded).
- the owner, group and permissions were hard coded.
- the man page was installed twice.
- MANDEPEND wasn't necessary.
- calculations to determine the obj directory weren't necessary.
- there were unnecessary private rules for depend, rcsfreeze and tags.
We don't support the rcsfreeze target.
- there was an extra, bogus, rule for `all'.
The final version uses suffix rules to eliminate the remaining verboseness
involving directories (${.CURDIR}) and to potentially allow multiple
shell programs in one directory.
Diffstat (limited to 'gnu/usr.bin/man/whatis/Makefile')
-rw-r--r-- | gnu/usr.bin/man/whatis/Makefile | 43 |
1 files changed, 4 insertions, 39 deletions
diff --git a/gnu/usr.bin/man/whatis/Makefile b/gnu/usr.bin/man/whatis/Makefile index 8ca53db..6fb62a2 100644 --- a/gnu/usr.bin/man/whatis/Makefile +++ b/gnu/usr.bin/man/whatis/Makefile @@ -1,41 +1,6 @@ -.if exists(${.CURDIR}/obj) -MAN1= ${.CURDIR}/obj/whatis.1 -TARG= ${.CURDIR}/obj/whatis -.else -MAN1= ${.CURDIR}/whatis.1 -TARG= ${.CURDIR}/whatis -.endif +# $Id$ -MANDEPEND= ${MAN1} +SHPROG= whatis -CLEANFILES+= ${TARG} ${MAN1} - -all: ${TARG} ${MAN1} - -depend rcsfreeze tags all: - @echo -n - -${TARG}: ${.CURDIR}/whatis.sh - sed -e 's,%libdir%,${libdir},' -e 's,%bindir%,${bindir},' \ - -e 's,%pager%,${pager},' \ - ${.CURDIR}/whatis.sh > ${.TARGET} - -${MAN1}: ${.CURDIR}/whatis.man - sed -e 's,%libdir%,${libdir},' -e 's,%bindir%,${bindir},' \ - -e 's,%pager%,${pager},' -e 's,%troff%,${troff},' \ - -e 's,%manpath_config_file%,${manpath_config_file},' \ - ${.CURDIR}/whatis.man > ${.TARGET} - -install: ${TARG} maninstall - ${INSTALL} -c -o bin -g bin -m 555 ${TARG} ${DESTDIR}/usr/bin - -.include "../Makefile.inc" -.if make(maninstall) || make(install) -.if !defined(NOMAN) -.include <bsd.man.mk> -.else -maninstall: -.endif -.endif - -.include <bsd.prog.mk> +.include "../../Makefile.inc" +.include "../Makefile.shprog" |