1998-08-12 17:00:24 +00:00
|
|
|
# you could set this to a4
|
|
|
|
PAPER=letter
|
|
|
|
|
|
|
|
# Where are the various programs?
|
|
|
|
LATEX= latex
|
|
|
|
PDFLATEX= pdflatex
|
|
|
|
DVIPS= dvips -N0 -t $(PAPER)
|
1998-10-19 21:48:05 +00:00
|
|
|
MAKEINDEX= makeindex -s ../texinputs/python.ist
|
1998-08-12 17:00:24 +00:00
|
|
|
PYTHON= python
|
|
|
|
|
|
|
|
TOOLSDIR= ../tools
|
|
|
|
TEXINPUTS= .:../texinputs:
|
|
|
|
|
|
|
|
MKDVI= TEXINPUTS=$(TEXINPUTS) $(TOOLSDIR)/mkdvi.sh
|
1999-03-16 16:11:27 +00:00
|
|
|
# The --keep option is needed to keep the intermediate files for generating
|
|
|
|
# the HTML global module index.
|
1999-03-03 20:27:10 +00:00
|
|
|
MKHOWTO= $(TOOLSDIR)/mkhowto --keep
|
1998-08-12 17:00:24 +00:00
|
|
|
MKPDF= TEXINPUTS=$(TEXINPUTS) $(TOOLSDIR)/mkdvi.sh --pdf
|
|
|
|
|
|
|
|
|
|
|
|
# what's what
|
|
|
|
MANDVIFILES= api.dvi ext.dvi lib.dvi ref.dvi tut.dvi
|
1999-03-16 16:11:27 +00:00
|
|
|
HOWTODVIFILES= doc.dvi mac.dvi
|
1998-08-12 17:00:24 +00:00
|
|
|
|
|
|
|
MANPDFFILES= api.pdf ext.pdf lib.pdf ref.pdf tut.pdf
|
1999-03-16 16:11:27 +00:00
|
|
|
HOWTOPDFFILES= doc.pdf mac.pdf
|
1998-08-12 17:00:24 +00:00
|
|
|
|
|
|
|
MANPSFILES= api.ps ext.ps lib.ps ref.ps tut.ps
|
1999-03-16 16:11:27 +00:00
|
|
|
HOWTOPSFILES= doc.ps mac.ps
|
1998-08-12 17:00:24 +00:00
|
|
|
|
|
|
|
DVIFILES= $(MANDVIFILES) $(HOWTODVIFILES)
|
|
|
|
PDFFILES= $(MANPDFFILES) $(HOWTOPDFFILES)
|
|
|
|
PSFILES= $(MANPSFILES) $(HOWTOPSFILES)
|
|
|
|
|
|
|
|
|
|
|
|
include ../Makefile.deps
|
|
|
|
|
|
|
|
|
1999-04-14 14:04:39 +00:00
|
|
|
SCRIPTS: ../tools/fix_hack ../tools/mkdvi.sh ../tools/indfix.py
|
|
|
|
|
1999-10-29 20:49:23 +00:00
|
|
|
$(DVIFILES): $(SCRIPTS)
|
|
|
|
$(PDFFILES): $(SCRIPTS)
|
1998-08-12 17:00:24 +00:00
|
|
|
|
1999-10-29 20:49:23 +00:00
|
|
|
$(HOWTODVIFILES): ../tools/mkhowto
|
|
|
|
$(HOWTOPDFFILES): ../tools/mkhowto
|
1998-08-12 17:00:24 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Rules to build PostScript and PDF formats
|
|
|
|
.SUFFIXES: .dvi .ps .pdf
|
|
|
|
|
|
|
|
.dvi.ps:
|
|
|
|
$(DVIPS) -o $@ $<
|
|
|
|
|
|
|
|
|
|
|
|
all: ps
|
|
|
|
dvi: $(DVIFILES)
|
|
|
|
pdf: $(PDFFILES)
|
|
|
|
ps: $(PSFILES)
|
|
|
|
|
|
|
|
|
1998-08-28 21:17:07 +00:00
|
|
|
README: $(PSFILES)
|
|
|
|
$(TOOLSDIR)/getpagecounts >$@
|
|
|
|
|
|
|
|
|
1998-08-12 17:00:24 +00:00
|
|
|
# Python/C API Reference Manual
|
|
|
|
api.dvi: $(APIFILES)
|
|
|
|
$(MKDVI) api
|
|
|
|
|
|
|
|
api.pdf: $(APIFILES)
|
|
|
|
$(MKPDF) api
|
|
|
|
|
1999-03-16 16:11:27 +00:00
|
|
|
# Documenting Python
|
1999-10-29 20:49:23 +00:00
|
|
|
doc.dvi: $(DOCFILES)
|
1999-03-16 16:11:27 +00:00
|
|
|
$(MKHOWTO) --dvi ../doc/doc.tex
|
|
|
|
|
1999-10-29 20:49:23 +00:00
|
|
|
doc.pdf: $(DOCFILES)
|
1999-03-16 16:11:27 +00:00
|
|
|
$(MKHOWTO) --pdf ../doc/doc.tex
|
|
|
|
|
1998-08-12 17:00:24 +00:00
|
|
|
# Extending and Embedding the Python Interpreter
|
|
|
|
ext.dvi: $(EXTFILES)
|
|
|
|
$(MKDVI) ext
|
|
|
|
|
|
|
|
ext.pdf: $(EXTFILES)
|
|
|
|
$(MKPDF) ext
|
|
|
|
|
1999-04-14 14:04:39 +00:00
|
|
|
# Python Library Reference
|
|
|
|
lib.dvi: $(LIBFILES)
|
|
|
|
$(MKDVI) lib
|
|
|
|
|
|
|
|
lib.pdf: $(LIBFILES)
|
|
|
|
$(MKPDF) lib
|
|
|
|
|
1998-08-12 17:00:24 +00:00
|
|
|
# Macintosh Library Modules
|
|
|
|
mac.dvi: $(MACFILES)
|
1998-12-28 15:17:22 +00:00
|
|
|
$(MKHOWTO) --dvi ../mac/mac.tex
|
1998-08-12 17:00:24 +00:00
|
|
|
|
|
|
|
mac.pdf: $(MACFILES)
|
1998-12-28 15:17:22 +00:00
|
|
|
$(MKHOWTO) --pdf ../mac/mac.tex
|
1998-08-12 17:00:24 +00:00
|
|
|
|
|
|
|
# Python Reference Manual
|
|
|
|
ref.dvi: $(REFFILES)
|
|
|
|
$(MKDVI) ref
|
|
|
|
|
|
|
|
ref.pdf: $(REFFILES)
|
|
|
|
$(MKPDF) ref
|
|
|
|
|
|
|
|
# Python Tutorial
|
|
|
|
tut.dvi: $(TUTFILES)
|
|
|
|
$(MKDVI) tut
|
|
|
|
|
|
|
|
tut.pdf: $(TUTFILES)
|
|
|
|
$(MKPDF) tut
|
|
|
|
|
|
|
|
|
|
|
|
clean:
|
1999-03-02 16:20:42 +00:00
|
|
|
rm -f *~ *.aux *.idx *.ilg *.ind *.log *.toc *.bkm *.syn *.pla
|
1998-08-12 17:00:24 +00:00
|
|
|
|
|
|
|
clobber: clean
|
|
|
|
rm -f $(DVIFILES) $(PSFILES) $(PDFFILES)
|
1998-09-23 17:37:14 +00:00
|
|
|
|
|
|
|
realclean: clobber
|
|
|
|
distclean: clobber
|