freebsd-dev/gnu/usr.bin/man/catman/Makefile
Bruce Evans 069fcad2d9 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.)
1994-11-14 05:57:36 +00:00

27 lines
573 B
Makefile

FILES= catman
NOMAN= noman
CLEANFILES+= ${FILES}
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}/${.TARGET}.sh > ${.TARGET}
install:
install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
${FILES} ${DESTDIR}${BINDIR}
.include <bsd.prog.mk>