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
|
2000-04-28 16:53:36 +00:00
|
|
|
HOWTODVIFILES= doc.dvi mac.dvi inst.dvi dist.dvi
|
1998-08-12 17:00:24 +00:00
|
|
|
|
|
|
|
MANPDFFILES= api.pdf ext.pdf lib.pdf ref.pdf tut.pdf
|
2000-04-28 16:53:36 +00:00
|
|
|
HOWTOPDFFILES= doc.pdf mac.pdf inst.pdf dist.pdf
|
1998-08-12 17:00:24 +00:00
|
|
|
|
|
|
|
MANPSFILES= api.ps ext.ps lib.ps ref.ps tut.ps
|
2000-04-28 16:53:36 +00:00
|
|
|
HOWTOPSFILES= doc.ps mac.ps inst.ps dist.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)
|
|
|
|
|
|
|
|
|
2000-04-03 04:51:13 +00:00
|
|
|
README: $(PSFILES) $(TOOLSDIR)/getpagecounts
|
1998-08-28 21:17:07 +00:00
|
|
|
$(TOOLSDIR)/getpagecounts >$@
|
|
|
|
|
|
|
|
|
1998-08-12 17:00:24 +00:00
|
|
|
# Python/C API Reference Manual
|
2000-04-03 04:51:13 +00:00
|
|
|
api.dvi: api.tex $(APIFILES)
|
1998-08-12 17:00:24 +00:00
|
|
|
$(MKDVI) api
|
|
|
|
|
2000-04-03 04:51:13 +00:00
|
|
|
api.pdf: api.tex $(APIFILES)
|
1998-08-12 17:00:24 +00:00
|
|
|
$(MKPDF) api
|
|
|
|
|
2000-04-03 04:51:13 +00:00
|
|
|
api.tex: ../api/api.tex ../api/refcounts.dat ../tools/anno-api.py
|
|
|
|
$(PYTHON) ../tools/anno-api.py -o $@ ../api/api.tex
|
|
|
|
|
2000-04-28 16:53:36 +00:00
|
|
|
# Distributing Python Modules
|
|
|
|
dist.dvi: $(DISTFILES)
|
|
|
|
$(MKHOWTO) --dvi ../dist/dist.tex
|
|
|
|
|
|
|
|
dist.pdf: $(DISTFILES)
|
|
|
|
$(MKHOWTO) --pdf ../dist/dist.tex
|
|
|
|
|
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
|
|
|
|
|
2000-04-28 16:53:36 +00:00
|
|
|
# Installing Python Modules
|
|
|
|
inst.dvi: $(INSTFILES)
|
|
|
|
$(MKHOWTO) --dvi ../inst/inst.tex
|
|
|
|
|
|
|
|
inst.pdf: $(INSTFILES)
|
|
|
|
$(MKHOWTO) --pdf ../inst/inst.tex
|
|
|
|
|
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:
|
2000-04-03 04:51:13 +00:00
|
|
|
rm -f *~ *.aux *.idx *.ilg *.ind *.log *.toc *.bkm *.syn *.pla api.tex
|
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
|