1997-05-09 18:31:24 +04:00
|
|
|
# from: @(#)Makefile 5.9 (Berkeley) 7/1/91
|
2001-06-30 04:19:25 +04:00
|
|
|
# $NetBSD: Makefile,v 1.6 2001/06/30 00:19:25 hubertf Exp $
|
1997-05-09 18:31:24 +04:00
|
|
|
|
1999-02-13 05:54:17 +03:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
|
|
|
.if ${MKSHARE} != "no"
|
1997-05-09 18:31:24 +04:00
|
|
|
FILES= makewhatis.sed COPYRIGHT
|
|
|
|
FILESDIR= /usr/share/man
|
1998-09-27 21:22:03 +04:00
|
|
|
.endif
|
1999-02-13 05:54:17 +03:00
|
|
|
MKOBJ= no
|
1997-05-09 18:31:24 +04:00
|
|
|
|
2001-06-26 06:26:06 +04:00
|
|
|
CLEANFILES+= man?
|
|
|
|
CLEANFILES+= man?pages.tmp
|
|
|
|
CLEANFILES+= man?pages.ps
|
|
|
|
CLEANFILES+= toc? tocx?
|
|
|
|
|
|
|
|
man:
|
|
|
|
sh mkman
|
|
|
|
|
|
|
|
man.ps:
|
|
|
|
for i in 1 2 3 4 5 6 7 8 9 ; \
|
|
|
|
do \
|
2001-06-30 04:19:25 +04:00
|
|
|
for f in `grep "$${i}\$$" intros` `cat man$${i}` ; \
|
2001-06-26 06:26:06 +04:00
|
|
|
do \
|
2001-06-30 04:19:25 +04:00
|
|
|
if [ ! -f $${f} ]; then \
|
|
|
|
continue ; \
|
|
|
|
fi ; \
|
|
|
|
if grep -q ^\\.TS back ; \
|
|
|
|
then \
|
|
|
|
echo >&2 $${f} ; \
|
|
|
|
cat $${f} | tbl | troff -msafer -man -Tps $${f} ; \
|
|
|
|
else \
|
|
|
|
echo >&2 $${f} "(tbl)" ; \
|
|
|
|
cat $${f} | troff -msafer -man -Tps $${f} ; \
|
|
|
|
fi ; \
|
2001-06-26 06:26:06 +04:00
|
|
|
done >man$${i}pages.tmp ; \
|
|
|
|
grops <man$${i}pages.tmp >man$${i}pages.ps ; \
|
|
|
|
rm man$${i}pages.tmp ; \
|
|
|
|
done
|
|
|
|
|
1997-05-09 18:31:24 +04:00
|
|
|
.include <bsd.prog.mk>
|