NetBSD/share/man/man0/Makefile

49 lines
1.0 KiB
Makefile
Raw Normal View History

# from: @(#)Makefile 5.9 (Berkeley) 7/1/91
2001-06-30 05:25:00 +04:00
# $NetBSD: Makefile,v 1.7 2001/06/30 01:25:00 hubertf Exp $
.include <bsd.own.mk>
.if ${MKSHARE} != "no"
FILES= makewhatis.sed COPYRIGHT
FILESDIR= /usr/share/man
.endif
MKOBJ= no
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 \
for f in `grep "$${i}\$$" intros` `cat man$${i}` ; \
do \
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 ; \
done >man$${i}pages.tmp ; \
grops <man$${i}pages.tmp >man$${i}pages.ps ; \
rm man$${i}pages.tmp ; \
done
2001-06-30 05:25:00 +04:00
man.pdf:
for i in 1 2 3 4 5 6 7 8 9 ; \
do \
echo Chewing on man$${i}pages.pdf ; \
ps2pdf man$${i}pages.ps man$${i}pages.pdf ; \
done
.include <bsd.prog.mk>