Makefile revision 1.7
11.1Smycroft# from: @(#)Makefile 5.9 (Berkeley) 7/1/91 21.7Shubertf# $NetBSD: Makefile,v 1.7 2001/06/30 01:25:00 hubertf Exp $ 31.1Smycroft 41.4Slukem.include <bsd.own.mk> 51.4Slukem 61.4Slukem.if ${MKSHARE} != "no" 71.1SmycroftFILES= makewhatis.sed COPYRIGHT 81.1SmycroftFILESDIR= /usr/share/man 91.3Slukem.endif 101.4SlukemMKOBJ= no 111.5Shubertf 121.5ShubertfCLEANFILES+= man? 131.5ShubertfCLEANFILES+= man?pages.tmp 141.5ShubertfCLEANFILES+= man?pages.ps 151.5ShubertfCLEANFILES+= toc? tocx? 161.5Shubertf 171.5Shubertfman: 181.5Shubertf sh mkman 191.5Shubertf 201.5Shubertfman.ps: 211.5Shubertf for i in 1 2 3 4 5 6 7 8 9 ; \ 221.5Shubertf do \ 231.6Shubertf for f in `grep "$${i}\$$" intros` `cat man$${i}` ; \ 241.5Shubertf do \ 251.6Shubertf if [ ! -f $${f} ]; then \ 261.6Shubertf continue ; \ 271.6Shubertf fi ; \ 281.6Shubertf if grep -q ^\\.TS back ; \ 291.6Shubertf then \ 301.6Shubertf echo >&2 $${f} ; \ 311.6Shubertf cat $${f} | tbl | troff -msafer -man -Tps $${f} ; \ 321.6Shubertf else \ 331.6Shubertf echo >&2 $${f} "(tbl)" ; \ 341.6Shubertf cat $${f} | troff -msafer -man -Tps $${f} ; \ 351.6Shubertf fi ; \ 361.5Shubertf done >man$${i}pages.tmp ; \ 371.5Shubertf grops <man$${i}pages.tmp >man$${i}pages.ps ; \ 381.5Shubertf rm man$${i}pages.tmp ; \ 391.7Shubertf done 401.7Shubertf 411.7Shubertfman.pdf: 421.7Shubertf for i in 1 2 3 4 5 6 7 8 9 ; \ 431.7Shubertf do \ 441.7Shubertf echo Chewing on man$${i}pages.pdf ; \ 451.7Shubertf ps2pdf man$${i}pages.ps man$${i}pages.pdf ; \ 461.5Shubertf done 471.1Smycroft 481.1Smycroft.include <bsd.prog.mk> 49