aboutsummaryrefslogtreecommitdiff
path: root/share/doc/psd/06.Clang/Makefile
diff options
context:
space:
mode:
authorGreg Lehey <grog@FreeBSD.org>2002-05-19 06:55:13 +0000
committerGreg Lehey <grog@FreeBSD.org>2002-05-19 06:55:13 +0000
commit19edff34830bb1428fd676d5f2c4a0feee4ea0ba (patch)
tree9b78496b7b00fc27ae3e77a0f2c28ec98b36642e /share/doc/psd/06.Clang/Makefile
parent8f810e50dae4872e2190eef6eb0af5325f5c9558 (diff)
Remove original license disclaimer.
Add Caldera license. Approved by: David Taylor <davidt@caldera.com> Make buildable under FreeBSD. This was relatively complicated: the original text used the msU macros, which are available in a number of different kinds. This version uses a number of mm-like macros, including AL and BL, which just aren't available in ms, and the msU macros I've found (even the ones in 4.4BSD) don't have them either. I replaced them with ms constructs, which makes it format better than the O'Reilly document, but I wasn't able to get the table of contents (ms doesn't have that facility). Add a prominent comment that this is not a reference for any modern version of C.
Notes
Notes: svn path=/head/; revision=96931
Diffstat (limited to 'share/doc/psd/06.Clang/Makefile')
-rw-r--r--share/doc/psd/06.Clang/Makefile19
1 files changed, 17 insertions, 2 deletions
diff --git a/share/doc/psd/06.Clang/Makefile b/share/doc/psd/06.Clang/Makefile
index fa688c5fd3b3..6116fa405b0d 100644
--- a/share/doc/psd/06.Clang/Makefile
+++ b/share/doc/psd/06.Clang/Makefile
@@ -3,9 +3,24 @@
DIR= psd/06.Clang
SRCS= Clang.ms
-MACROS= -msU
+MACROS= -ms
+GROFF= groff
+
+all: paper.ps paper.ascii
paper.ps: ${SRCS}
- ${TBL} ${SRCS} | ${ROFF} > ${.TARGET}
+ ${TBL} ${SRCS} | ${GROFF} ${MACROS} - > ${.TARGET}
+
+paper.ascii: ${SRCS}
+ ${TBL} ${SRCS} | ${ROFF} ${MACROS} - > ${.TARGET}
+
+paper.ascii.gz: paper.ascii
+paper.ps.gz: paper.ps
+
+paper.ascii.gz paper.ps.gz:
+ gzip -f ${.TARGET:.gz=}
+
+clean:
+ rm -f paper.* *.spell errs Errs make.out Make.log *~
.include <bsd.doc.mk>