new doc makefiles
[unix-history] / usr / src / old / roff / USD.doc / troff / Makefile
index efc69bb..359bac8 100644 (file)
@@ -1,10 +1,6 @@
-#
-# Copyright (c) 1986 Regents of the University of California.
-# All rights reserved.  The Berkeley software License Agreement
-# specifies the terms and conditions for redistribution.
-#
-#      @(#)Makefile    6.3 (Berkeley) %G%
-#
+#      @(#)Makefile    6.4 (Berkeley) %G%
+
+DIR=   usd/24.troff
 INTRO= m0
 TUTOR= m0a
 PAPER= m1 m2 m3 m4
 INTRO= m0
 TUTOR= m0a
 PAPER= m1 m2 m3 m4
@@ -12,44 +8,34 @@ APNDX1=      m5
 APNDX2=        table1
 APNDX3=        table2
 MACROS=        m.mac
 APNDX2=        table1
 APNDX3=        table2
 MACROS=        m.mac
-PRINTER=Pdp
-TBL=   dtbl -${PRINTER}
-TROFF= ditroff -${PRINTER}
-LPR=   lpr -n -${PRINTER}
-
-paper: intro.${PRINTER} tutor.${PRINTER} paper.${PRINTER}
-paper: apndx1.${PRINTER} apndx2.${PRINTER} apndx3.${PRINTER} 
-       ${LPR} intro.${PRINTER}
-       ${LPR} tutor.${PRINTER}
-       ${LPR} paper.${PRINTER}
-       ${LPR} apndx1.${PRINTER}
-       ${LPR} apndx2.${PRINTER}
-       ${LPR} apndx3.${PRINTER}
+
+paper.${PRINTER}: intro.${PRINTER} tutor.${PRINTER} apndx1.${PRINTER} \
+       apndx2.${PRINTER} apndx3.${PRINTER}
+       ${TBL} ${PAPER} | ${ROFF} > ${.TARGET}
 
 intro.${PRINTER}: ${INTRO}
 
 intro.${PRINTER}: ${INTRO}
-       ${TROFF} -t ${MACROS} ${INTRO} > intro.${PRINTER}
+       ${ROFF} ${INTRO} > ${.TARGET}
 
 tutor.${PRINTER}: ${TUTOR}
 
 tutor.${PRINTER}: ${TUTOR}
-       ${TBL} ${TUTOR} | ${TROFF} -t ${MACROS} - > tutor.${PRINTER}
-
-paper.${PRINTER}: ${PAPER}
-       ${TBL} ${PAPER} | ${TROFF} -t ${MACROS} - > paper.${PRINTER}
+       ${TBL} ${TUTOR} | ${ROFF} > ${.TARGET}
 
 apndx1.${PRINTER}: ${APNDX1}
 
 apndx1.${PRINTER}: ${APNDX1}
-       ${TROFF} -t ${MACROS} ${APNDX1} > apndx1.${PRINTER}
+       ${ROFF} ${APNDX1} > ${.TARGET}
 
 apndx2.${PRINTER}: ${APNDX2}
 
 apndx2.${PRINTER}: ${APNDX2}
-       ${TROFF} -t ${MACROS} ${APNDX2} > apndx2.${PRINTER}
+       ${ROFF} ${APNDX2} > ${.TARGET}
 
 apndx3.${PRINTER}: ${APNDX3}
 
 apndx3.${PRINTER}: ${APNDX3}
-       ${TROFF} -t ${MACROS} ${APNDX3} > apndx3.${PRINTER}
+       ${ROFF} ${APNDX3} > ${.TARGET}
 
 clean:
        rm -f intro.${PRINTER} tutor.${PRINTER} paper.${PRINTER} \
 
 clean:
        rm -f intro.${PRINTER} tutor.${PRINTER} paper.${PRINTER} \
-               apndx1.${PRINTER} apndx2.${PRINTER} apndx3.${PRINTER} \
-               *.spell errs Errs make.out
+           apndx1.${PRINTER} apndx2.${PRINTER} apndx3.${PRINTER} \
+           *.spell errs Errs make.out
 
 
-spell: ${INTRO} ${TUTOR} ${PAPER} ${APNDX1} ${APNDX2} ${APNDX3}
+spell: ${INTRO} ${TUTOR} ${PAPER} ${APNDX1} ${APNDX2} ${APNDX3}
        @for i in ${INTRO} ${TUTOR} ${PAPER} ${APNDX1} ${APNDX2} ${APNDX3}; do \
                echo $$i; spell $$i | sort | comm -23 - spell.ok > $$i.spell; \
        done
        @for i in ${INTRO} ${TUTOR} ${PAPER} ${APNDX1} ${APNDX2} ${APNDX3}; do \
                echo $$i; spell $$i | sort | comm -23 - spell.ok > $$i.spell; \
        done
+
+.include <bsd.doc.mk>