projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New manpage compression support. Only one macro controls compression
[unix-history]
/
gnu
/
usr.bin
/
man
/
catman
/
Makefile
diff --git
a/gnu/usr.bin/man/catman/Makefile
b/gnu/usr.bin/man/catman/Makefile
index
de870e3
..
15672d5
100644
(file)
--- a/
gnu/usr.bin/man/catman/Makefile
+++ b/
gnu/usr.bin/man/catman/Makefile
@@
-1,8
+1,15
@@
-obj cleandir clean depend rcsfreeze tags all:
-
@echo -
n
+NOMAN= noman
+
CLEANFILES= catma
n
-install:
- install -c -o bin -g bin -m 555 catman ${DESTDIR}/usr/bin
+beforeinstall: catman
+ install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
+ ${.CURDIR}/catman ${DESTDIR}${BINDIR}
-.include "../Makefile.inc"
.include <bsd.prog.mk>
.include <bsd.prog.mk>
+
+catman: catman.sh
+ sed -e 's,%compress%,${compress},' \
+ -e 's,%compext%,${compext},' \
+ -e 's,%zcat%,${zcat},' \
+ ${.CURDIR}/catman.sh > catman
+