Kaydet (Commit) b83241c0 authored tarafından Guido van Rossum's avatar Guido van Rossum

Much simpler version, intended as a script.

üst b75d8cea
# Makefile for Python documentation. all: tut ref lib # qua
# Actually, it is easier to just do:
# latex tut tut:
# latex tut latex tut
# latex lib latex tut
# latex lib
# latex ref ref:
# latex ref touch ref.ind
# (Doing everything twice so the table of contents comes out right!) latex ref
makeindex ref
LATEX= latex latex ref
DVIPS= dvips
TEXPREVIEW= xdvi lib:
touch lib.ind
PRINT= lpr latex lib
makeindex lib
ALL= tut.ps lib.ps ref.ps latex lib
all: $(ALL) qua:
latex qua
tut: tut.dvi latex qua
$(TEXPREVIEW) tut bibtex qua
latex qua
tut.dvi tut.ps: tut.toc tut.tex myformat.sty
lib: lib.dvi
$(TEXPREVIEW) lib
lib.dvi lib.ps: lib.toc lib.tex lib1.tex lib2.tex lib3.tex myformat.sty
ref: ref.dvi
$(TEXPREVIEW) ref
ref.dvi ref.ps: ref.toc ref.tex myformat.sty
print: $(ALL)
$(PRINT) $(ALL)
clean: clean:
rm -f *.dvi *.aux *.toc *.log *.ps core [#@,]* *~ rm -f *~ *.aux *.dvi *.idx *.ilg *.ind *.log *.ps *.toc
# Keep: .tex, .bib, .sty!
.SUFFIXES: # Remove default suffixes
.SUFFIXES: .tex .aux .toc .dvi .ps
.tex.aux:
$(LATEX) $*
.tex.toc:
$(LATEX) $*
.tex.dvi:
$(LATEX) $*
.dvi.ps:
$(DVIPS) $* >$*.ps
.tex.ps:
$(LATEX) $*
$(DVIPS) $* >$*.ps
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment