summaryrefslogtreecommitdiffstats
path: root/Doc/Makefile
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1990-10-07 12:35:21 (GMT)
committerGuido van Rossum <guido@python.org>1990-10-07 12:35:21 (GMT)
commiteeaccbf068bf446a310e07fee988578d0b641ae9 (patch)
tree9ca2359756a510cd2f33a26114f7199072f41241 /Doc/Makefile
parentb829a0935bbd3dea4898bf68b6be69b59bffcbec (diff)
downloadcpython-eeaccbf068bf446a310e07fee988578d0b641ae9.zip
cpython-eeaccbf068bf446a310e07fee988578d0b641ae9.tar.gz
cpython-eeaccbf068bf446a310e07fee988578d0b641ae9.tar.bz2
Added support for postscript output (*.ps).
Diffstat (limited to 'Doc/Makefile')
-rw-r--r--Doc/Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/Doc/Makefile b/Doc/Makefile
index 6691690..ed9f067 100644
--- a/Doc/Makefile
+++ b/Doc/Makefile
@@ -3,6 +3,7 @@ TROFF= ditroff
MS= -ms
FUNNYTAB= $$HOME/lib/funnytab
PREVIEW= dpv -f $(FUNNYTAB)
+PSDIT= psdit
tut: tut.dit
$(PREVIEW) tut.dit
@@ -23,9 +24,17 @@ all: $(ALL)
$(ALL): macros.ms
clean:
- rm -f $(ALL)
+ rm -f *.dit *.ps core @* ,*
-.SUFFIXES: .ms .dit
+.SUFFIXES: # Remove default suffixes
+
+.SUFFIXES: .ms .dit .ps
.ms.dit:
$(TBL) $*.ms | $(TROFF) $(MS) >$@
+
+.dit.ps:
+ $(PSDIT) <$*.dit >$@
+
+.ms.ps:
+ $(TBL) $*.ms | $(TROFF) $(MS) | $(PSDIT) >$@