BSD 4_4_Lite2 release
[unix-history] / usr / src / share / man / man0 / Makefile
index 1cf89c6..213385d 100644 (file)
@@ -1,47 +1,70 @@
 #
 #
-# Copyright (c) 1986 Regents of the University of California.
-# All rights reserved.  The Berkeley software License Agreement
-# specifies the terms and conditions for redistribution.
+# Copyright (c) 1986, 1993 Regents of the University of California.
+# All rights reserved.
 #
 #
-#      @(#)Makefile    6.2 (Berkeley) %G%
+#      @(#)Makefile    8.3 (Berkeley) 5/4/94
 #
 #
-TOCS=  toc1 toc2 toc3 toc3f toc4 toc5 toc6 toc7 toc8 \
-       tocx1 tocx2 tocx3 tocx3f tocx4 tocx5 tocx6 tocx7 tocx8
-MACROS=        -msU
-PRINTER=Pdp
-TROFF= ditroff -${PRINTER}
+SRCS=  man1 man2 man3 man4 man5 man6 man7 man8
 
 
-all: title.urm.${PRINTER} preface.${PRINTER} intro.${PRINTER} \
-     toc.${PRINTER} ptx.${PRINTER} title.prm.${PRINTER}
-       lpr -${PRINTER} -n title.urm.${PRINTER}
-       lpr -${PRINTER} -n preface.${PRINTER}
-       lpr -${PRINTER} -n intro.${PRINTER}
-       lpr -${PRINTER} -n toc.${PRINTER}
-       lpr -${PRINTER} -n ptx.${PRINTER}
-       lpr -${PRINTER} -n title.prm.${PRINTER}
+MACROS=        -ms
+PRINTER=Pps
+EQN=   eqn
+TBL=   tbl
+TROFF= groff
 
 
-title.urm.${PRINTER}: title.urm
-       ${TROFF} -t title.urm >title.urm.${PRINTER}
+all: title.urm.${PRINTER} title.prm.${PRINTER}
 
 
-preface.${PRINTER}: preface.ms
-       ${TROFF} ${MACROS} -t preface.ms >preface.${PRINTER}
+print: title.urm.${PRINTER} title.prm.${PRINTER}
+       lpr -${PRINTER} title.urm.${PRINTER}
+       lpr -${PRINTER} title.prm.${PRINTER}
 
 
-intro.${PRINTER}: intro.ms
-       ${TROFF} ${MACROS} -t intro.ms >intro.${PRINTER}
+title.urm.${PRINTER}: title.urm ptxx
+       ${EQN} title.urm | ${TBL} | ${TROFF} ${MACROS} >title.urm.${PRINTER}
 
 
-toc.${PRINTER}: toc.in ptxx
-       ${TROFF} -t toc.in >toc.${PRINTER}
+title.prm.${PRINTER}: ${SRCS} title.prm ptxx
+       ${TROFF} title.prm >title.prm.${PRINTER}
 
 
-ptx.${PRINTER}: ptx.in ptxx
-       ${TROFF} -t ptx.in >ptx.${PRINTER}
+ptxx:
+       ./tocrc
 
 
-title.prm.${PRINTER}: title.prm ptxx
-       ${TROFF} -t title.prm >title.prm.${PRINTER}
+man1pages: man1
+       rm -f man1.out
+       for i in `cat man1`; do \
+               sed -f groff.sed $$i | groff -man >>man1pages; \
+       done;
 
 
-ptxx:
-       tocrc all
-       tocrc t
+man2pages: man2
+       rm -f man2.out
+       for i in `cat man2`; do groff -man $$i >>man2pages; done;
+
+man3pages: man3
+       rm -f man3.out
+       for i in `cat man3`; do groff -man $$i >>man3pages; done;
+
+man4pages: man4
+       rm -f man4.out
+       for i in `cat man4`; do groff -man $$i >>man4pages; done;
+
+man5pages: man5
+       rm -f man5.out
+       for i in `cat man5`; do \
+               sed -f groff.sed $$i | groff -man >>man5pages; \
+       done;
+
+man6pages: man6
+       rm -f man6.out
+       for i in `cat man6`; do groff -man $$i >>man6pages; done;
+
+man7pages: man7
+       rm -f man7.out
+       for i in `cat man7`; do \
+               sed -f groff.sed $$i | groff -man >>man7pages; \
+       done;
+
+man8pages: man8
+       rm -f man8.out
+       for i in `cat man8`; do groff -man $$i >>man8pages; done;
 
 clean:
 
 clean:
-       rm -f title.urm.[PT]* preface.[PT]* intro.[PT]* toc.[PT]* ptx.[PT]* \
-       title.prm.[PT]* ${TOCS} ptxx *.spell errs Errs make.out
+       rm -f title.urm.[PT]* title.prm.[PT]* toc? tocx? ptxx \
+               *.spell errs Errs make.out