1998-08-12 17:00:24 +00:00
|
|
|
# you could set this to a4
|
|
|
|
PAPER=letter
|
|
|
|
|
|
|
|
# Where are the various programs?
|
|
|
|
DVIPS= dvips -N0 -t $(PAPER)
|
|
|
|
PYTHON= python
|
|
|
|
|
|
|
|
TOOLSDIR= ../tools
|
|
|
|
|
2000-08-31 06:12:35 +00:00
|
|
|
MKHOWTO= $(TOOLSDIR)/mkhowto
|
|
|
|
MKDVI= $(MKHOWTO) --dvi
|
|
|
|
MKPDF= $(MKHOWTO) --pdf
|
1998-08-12 17:00:24 +00:00
|
|
|
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
|
2000-08-31 06:12:35 +00:00
|
|
|
SCRIPTS: ../tools/indfix.py
|
1999-04-14 14:04:39 +00:00
|
|
|
|
2000-08-31 06:12:35 +00:00
|
|
|
$(DVIFILES): $(SCRIPTS) $(MKHOWTO)
|
|
|
|
$(PDFFILES): $(SCRIPTS) $(MKHOWTO)
|
1998-08-12 17:00:24 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Rules to build PostScript and PDF formats
|
2000-08-31 06:12:35 +00:00
|
|
|
.SUFFIXES: .dvi .ps
|
1998-08-12 17:00:24 +00:00
|
|
|
|
|
|
|
.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)
|
2000-08-31 06:12:35 +00:00
|
|
|
$(MKDVI) ../api/api.tex
|
1998-08-12 17:00:24 +00:00
|
|
|
|
2000-04-03 04:51:13 +00:00
|
|
|
api.pdf: api.tex $(APIFILES)
|
2000-08-31 06:12:35 +00:00
|
|
|
$(MKPDF) ../api/api.tex
|
1998-08-12 17:00:24 +00:00
|
|
|
|
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)
|
2000-08-31 06:12:35 +00:00
|
|
|
$(MKDVI) ../dist/dist.tex
|
2000-04-28 16:53:36 +00:00
|
|
|
|
|
|
|
dist.pdf: $(DISTFILES)
|
2000-08-31 06:12:35 +00:00
|
|
|
$(MKPDF) ../dist/dist.tex
|
2000-04-28 16:53:36 +00:00
|
|
|
|
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)
|
2000-08-31 06:12:35 +00:00
|
|
|
$(MKDVI) ../ext/ext.tex
|
1998-08-12 17:00:24 +00:00
|
|
|
|
|
|
|
ext.pdf: $(EXTFILES)
|
2000-08-31 06:12:35 +00:00
|
|
|
$(MKPDF) ../ext/ext.tex
|
1998-08-12 17:00:24 +00:00
|
|
|
|
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)
|
2000-08-31 06:12:35 +00:00
|
|
|
$(MKDVI) ../lib/lib.tex
|
1999-04-14 14:04:39 +00:00
|
|
|
|
|
|
|
lib.pdf: $(LIBFILES)
|
2000-08-31 06:12:35 +00:00
|
|
|
$(MKPDF) ../lib/lib.tex
|
1999-04-14 14:04:39 +00:00
|
|
|
|
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)
|
2000-08-31 06:12:35 +00:00
|
|
|
$(MKDVI) ../ref/ref.tex
|
1998-08-12 17:00:24 +00:00
|
|
|
|
|
|
|
ref.pdf: $(REFFILES)
|
2000-08-31 06:12:35 +00:00
|
|
|
$(MKPDF) ../ref/ref.tex
|
1998-08-12 17:00:24 +00:00
|
|
|
|
|
|
|
# Python Tutorial
|
|
|
|
tut.dvi: $(TUTFILES)
|
2000-08-31 06:12:35 +00:00
|
|
|
$(MKDVI) ../tut/tut.tex
|
1998-08-12 17:00:24 +00:00
|
|
|
|
|
|
|
tut.pdf: $(TUTFILES)
|
2000-08-31 06:12:35 +00:00
|
|
|
$(MKPDF) ../tut/tut.tex
|
1998-08-12 17:00:24 +00:00
|
|
|
|
|
|
|
|
|
|
|
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
|