1998-08-12 14:00:24 -03: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 18:48:05 -03:00
|
|
|
MAKEINDEX= makeindex -s ../texinputs/python.ist
|
1998-08-12 14:00:24 -03:00
|
|
|
PYTHON= python
|
|
|
|
|
|
|
|
TOOLSDIR= ../tools
|
|
|
|
TEXINPUTS= .:../texinputs:
|
|
|
|
|
|
|
|
MKDVI= TEXINPUTS=$(TEXINPUTS) $(TOOLSDIR)/mkdvi.sh
|
1999-03-16 12:11:27 -04:00
|
|
|
# The --keep option is needed to keep the intermediate files for generating
|
|
|
|
# the HTML global module index.
|
1999-03-03 16:27:10 -04:00
|
|
|
MKHOWTO= $(TOOLSDIR)/mkhowto --keep
|
1998-08-12 14:00:24 -03: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 12:11:27 -04:00
|
|
|
HOWTODVIFILES= doc.dvi mac.dvi
|
1998-08-12 14:00:24 -03:00
|
|
|
|
|
|
|
MANPDFFILES= api.pdf ext.pdf lib.pdf ref.pdf tut.pdf
|
1999-03-16 12:11:27 -04:00
|
|
|
HOWTOPDFFILES= doc.pdf mac.pdf
|
1998-08-12 14:00:24 -03:00
|
|
|
|
|
|
|
MANPSFILES= api.ps ext.ps lib.ps ref.ps tut.ps
|
1999-03-16 12:11:27 -04:00
|
|
|
HOWTOPSFILES= doc.ps mac.ps
|
1998-08-12 14:00:24 -03:00
|
|
|
|
|
|
|
DVIFILES= $(MANDVIFILES) $(HOWTODVIFILES)
|
|
|
|
PDFFILES= $(MANPDFFILES) $(HOWTOPDFFILES)
|
|
|
|
PSFILES= $(MANPSFILES) $(HOWTOPSFILES)
|
|
|
|
|
|
|
|
|
|
|
|
include ../Makefile.deps
|
|
|
|
|
|
|
|
COMMONSTYLES= ../texinputs/python.sty \
|
|
|
|
../texinputs/pypaper.sty \
|
1998-10-19 18:48:05 -03:00
|
|
|
../texinputs/python.ist
|
1998-08-12 14:00:24 -03:00
|
|
|
|
|
|
|
COMMONTEX= ../texinputs/copyright.tex \
|
|
|
|
../texinputs/boilerplate.tex
|
|
|
|
|
|
|
|
MANSTYLES= ../texinputs/fncychap.sty \
|
|
|
|
../texinputs/manual.cls \
|
|
|
|
$(COMMONSTYLES)
|
|
|
|
|
|
|
|
HOWTOSTYLES= ../texinputs/howto.cls \
|
|
|
|
$(COMMONSTYLES)
|
|
|
|
|
|
|
|
|
1999-04-14 11:04:39 -03:00
|
|
|
SCRIPTS: ../tools/fix_hack ../tools/mkdvi.sh ../tools/indfix.py
|
|
|
|
|
|
|
|
$(DVIFILES): $(SCRIPTS) $(COMMONTEX)
|
|
|
|
$(PDFFILES): $(SCRIPTS) $(COMMONTEX)
|
1998-08-12 14:00:24 -03:00
|
|
|
|
|
|
|
$(MANDVIFILES): $(MANSTYLES)
|
|
|
|
$(MANPDFFILES): $(MANSTYLES)
|
|
|
|
|
1999-03-03 16:27:10 -04:00
|
|
|
$(HOWTODVIFILES): ../tools/mkhowto $(HOWTOSTYLES)
|
|
|
|
$(HOWTOPDFFILES): ../tools/mkhowto $(HOWTOSTYLES)
|
1998-08-12 14:00:24 -03: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 18:17:07 -03:00
|
|
|
README: $(PSFILES)
|
|
|
|
$(TOOLSDIR)/getpagecounts >$@
|
|
|
|
|
|
|
|
|
1998-08-12 14:00:24 -03:00
|
|
|
# Python/C API Reference Manual
|
|
|
|
api.dvi: $(APIFILES)
|
|
|
|
$(MKDVI) api
|
|
|
|
|
|
|
|
api.pdf: $(APIFILES)
|
|
|
|
$(MKPDF) api
|
|
|
|
|
1999-03-16 12:11:27 -04:00
|
|
|
# Documenting Python
|
|
|
|
doc.dvi: $(DOCFILES) ../texinputs/ltxmarkup.sty
|
|
|
|
$(MKHOWTO) --dvi ../doc/doc.tex
|
|
|
|
|
|
|
|
doc.pdf: $(DOCCFILES) ../texinputs/ltxmarkup.sty
|
|
|
|
$(MKHOWTO) --pdf ../doc/doc.tex
|
|
|
|
|
1998-08-12 14:00:24 -03:00
|
|
|
# Extending and Embedding the Python Interpreter
|
|
|
|
ext.dvi: $(EXTFILES)
|
|
|
|
$(MKDVI) ext
|
|
|
|
|
|
|
|
ext.pdf: $(EXTFILES)
|
|
|
|
$(MKPDF) ext
|
|
|
|
|
1999-04-14 11:04:39 -03:00
|
|
|
# Python Library Reference
|
|
|
|
lib.dvi: $(LIBFILES)
|
|
|
|
$(MKDVI) lib
|
|
|
|
|
|
|
|
lib.pdf: $(LIBFILES)
|
|
|
|
$(MKPDF) lib
|
|
|
|
|
1998-08-12 14:00:24 -03:00
|
|
|
# Macintosh Library Modules
|
|
|
|
mac.dvi: $(MACFILES)
|
1998-12-28 11:17:22 -04:00
|
|
|
$(MKHOWTO) --dvi ../mac/mac.tex
|
1998-08-12 14:00:24 -03:00
|
|
|
|
|
|
|
mac.pdf: $(MACFILES)
|
1998-12-28 11:17:22 -04:00
|
|
|
$(MKHOWTO) --pdf ../mac/mac.tex
|
1998-08-12 14:00:24 -03: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 12:20:42 -04:00
|
|
|
rm -f *~ *.aux *.idx *.ilg *.ind *.log *.toc *.bkm *.syn *.pla
|
1998-08-12 14:00:24 -03:00
|
|
|
|
|
|
|
clobber: clean
|
|
|
|
rm -f $(DVIFILES) $(PSFILES) $(PDFFILES)
|
1998-09-23 14:37:14 -03:00
|
|
|
|
|
|
|
realclean: clobber
|
|
|
|
distclean: clobber
|