Home | History | Annotate | Line # | Download | only in man0
Makefile revision 1.7
      1  1.1  mycroft #	from: @(#)Makefile	5.9 (Berkeley) 7/1/91
      2  1.7  hubertf #	$NetBSD: Makefile,v 1.7 2001/06/30 01:25:00 hubertf Exp $
      3  1.1  mycroft 
      4  1.4    lukem .include <bsd.own.mk>
      5  1.4    lukem 
      6  1.4    lukem .if ${MKSHARE} != "no"
      7  1.1  mycroft FILES=		makewhatis.sed COPYRIGHT
      8  1.1  mycroft FILESDIR=	/usr/share/man
      9  1.3    lukem .endif
     10  1.4    lukem MKOBJ=		no
     11  1.5  hubertf 
     12  1.5  hubertf CLEANFILES+=	man?
     13  1.5  hubertf CLEANFILES+=	man?pages.tmp
     14  1.5  hubertf CLEANFILES+=	man?pages.ps
     15  1.5  hubertf CLEANFILES+=	toc? tocx?
     16  1.5  hubertf 
     17  1.5  hubertf man:
     18  1.5  hubertf 	sh mkman
     19  1.5  hubertf 
     20  1.5  hubertf man.ps:
     21  1.5  hubertf 	for i in 1 2 3 4 5 6 7 8 9 ; 				\
     22  1.5  hubertf 	do							\
     23  1.6  hubertf 		for f in `grep "$${i}\$$" intros` `cat man$${i}` ; \
     24  1.5  hubertf 		do						\
     25  1.6  hubertf 			if [ ! -f $${f} ]; then 		\
     26  1.6  hubertf 				continue ; 			\
     27  1.6  hubertf 			fi ;					\
     28  1.6  hubertf 			if grep -q ^\\.TS back ;		\
     29  1.6  hubertf 			then					\
     30  1.6  hubertf 				echo >&2 $${f} ; 			\
     31  1.6  hubertf 				cat $${f} | tbl | troff -msafer -man -Tps $${f} ; \
     32  1.6  hubertf 			else 					\
     33  1.6  hubertf 				echo >&2 $${f} "(tbl)" ;	\
     34  1.6  hubertf 				cat $${f} | troff -msafer -man -Tps $${f} ;	\
     35  1.6  hubertf 			fi ; 					\
     36  1.5  hubertf 		done >man$${i}pages.tmp ;			\
     37  1.5  hubertf 		grops <man$${i}pages.tmp >man$${i}pages.ps ;	\
     38  1.5  hubertf 		rm man$${i}pages.tmp ; 				\
     39  1.7  hubertf 	done
     40  1.7  hubertf 
     41  1.7  hubertf man.pdf:
     42  1.7  hubertf 	for i in 1 2 3 4 5 6 7 8 9 ; 				\
     43  1.7  hubertf 	do							\
     44  1.7  hubertf 		echo Chewing on man$${i}pages.pdf ;		\
     45  1.7  hubertf 		ps2pdf man$${i}pages.ps man$${i}pages.pdf  ;	\
     46  1.5  hubertf 	done
     47  1.1  mycroft 
     48  1.1  mycroft .include <bsd.prog.mk>
     49