-
-
Save tcppjp/7eaa0a58061ed1a5756a70761ade20fc to your computer and use it in GitHub Desktop.
Makefile generated by the LaTeX builder of Sphinx 1.5.1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Makefile for Sphinx LaTeX output | |
ALLDOCS = $(basename $(wildcard *.tex)) | |
ALLPDF = $(addsuffix .pdf,$(ALLDOCS)) | |
ALLDVI = $(addsuffix .dvi,$(ALLDOCS)) | |
ALLPS = $(addsuffix .ps,$(ALLDOCS)) | |
# Prefix for archive names | |
ARCHIVEPRREFIX = | |
# Additional LaTeX options | |
LATEXOPTS = | |
# format: pdf or dvi | |
FMT = pdf | |
LATEX = latex | |
PDFLATEX = pdflatex | |
MAKEINDEX = makeindex | |
all: $(ALLPDF) | |
all-pdf: $(ALLPDF) | |
all-dvi: $(ALLDVI) | |
all-ps: $(ALLPS) | |
all-pdf-ja: | |
for f in *.pdf *.png *.gif *.jpg *.jpeg; do extractbb $$f; done | |
for f in *.tex; do platex -kanji=utf8 $(LATEXOPTS) $$f; done | |
for f in *.tex; do platex -kanji=utf8 $(LATEXOPTS) $$f; done | |
for f in *.tex; do platex -kanji=utf8 $(LATEXOPTS) $$f; done | |
-for f in *.idx; do mendex -U -f -d "`basename $$f .idx`.dic" -s python.ist $$f; done | |
for f in *.tex; do platex -kanji=utf8 $(LATEXOPTS) $$f; done | |
for f in *.tex; do platex -kanji=utf8 $(LATEXOPTS) $$f; done | |
for f in *.dvi; do dvipdfmx $$f; done | |
zip: all-$(FMT) | |
mkdir $(ARCHIVEPREFIX)docs-$(FMT) | |
cp $(ALLPDF) $(ARCHIVEPREFIX)docs-$(FMT) | |
zip -q -r -9 $(ARCHIVEPREFIX)docs-$(FMT).zip $(ARCHIVEPREFIX)docs-$(FMT) | |
rm -r $(ARCHIVEPREFIX)docs-$(FMT) | |
tar: all-$(FMT) | |
mkdir $(ARCHIVEPREFIX)docs-$(FMT) | |
cp $(ALLPDF) $(ARCHIVEPREFIX)docs-$(FMT) | |
tar cf $(ARCHIVEPREFIX)docs-$(FMT).tar $(ARCHIVEPREFIX)docs-$(FMT) | |
rm -r $(ARCHIVEPREFIX)docs-$(FMT) | |
gz: tar | |
gzip -9 < $(ARCHIVEPREFIX)docs-$(FMT).tar > $(ARCHIVEPREFIX)docs-$(FMT).tar.gz | |
bz2: tar | |
bzip2 -9 -k $(ARCHIVEPREFIX)docs-$(FMT).tar | |
xz: tar | |
xz -9 -k $(ARCHIVEPREFIX)docs-$(FMT).tar | |
# The number of LaTeX runs is quite conservative, but I don't expect it | |
# to get run often, so the little extra time won't hurt. | |
%.dvi: %.tex | |
$(LATEX) $(LATEXOPTS) '$<' | |
$(LATEX) $(LATEXOPTS) '$<' | |
$(LATEX) $(LATEXOPTS) '$<' | |
-$(MAKEINDEX) -s python.ist '$(basename $<).idx' | |
$(LATEX) $(LATEXOPTS) '$<' | |
$(LATEX) $(LATEXOPTS) '$<' | |
%.pdf: %.tex | |
$(PDFLATEX) $(LATEXOPTS) '$<' | |
$(PDFLATEX) $(LATEXOPTS) '$<' | |
$(PDFLATEX) $(LATEXOPTS) '$<' | |
-$(MAKEINDEX) -s python.ist '$(basename $<).idx' | |
$(PDFLATEX) $(LATEXOPTS) '$<' | |
$(PDFLATEX) $(LATEXOPTS) '$<' | |
%.ps: %.dvi | |
dvips '$<' | |
clean: | |
rm -f *.log *.ind *.aux *.toc *.syn *.idx *.out *.ilg *.pla *.ps *.tar *.tar.gz *.tar.bz2 *.tar.xz $(ALLPDF) $(ALLDVI) | |
.PHONY: all all-pdf all-dvi all-ps clean zip tar gz bz2 xz | |
.PHONY: all-pdf-ja |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment