Changes due to added test for fileConfig contributed by Shane Hathaway.
[python.git] / Doc / howto / Makefile
blob19701c69eb7d3844cc8b340e6bb32d46653e1422
2 MKHOWTO=../tools/mkhowto
3 WEBDIR=.
4 RSTARGS = --input-encoding=utf-8
5 VPATH=.:dvi:pdf:ps:txt
7 # List of HOWTOs that aren't to be processed
9 REMOVE_HOWTO =
11 # Determine list of files to be built
13 HOWTO=$(filter-out $(REMOVE_HOWTO),$(wildcard *.tex))
14 RST_SOURCES = $(shell echo *.rst)
15 DVI =$(patsubst %.tex,%.dvi,$(HOWTO))
16 PDF =$(patsubst %.tex,%.pdf,$(HOWTO))
17 PS =$(patsubst %.tex,%.ps,$(HOWTO))
18 TXT =$(patsubst %.tex,%.txt,$(HOWTO))
19 HTML =$(patsubst %.tex,%,$(HOWTO))
21 # Rules for building various formats
22 %.dvi : %.tex
23 $(MKHOWTO) --dvi $<
24 mv $@ dvi
26 %.pdf : %.tex
27 $(MKHOWTO) --pdf $<
28 mv $@ pdf
30 %.ps : %.tex
31 $(MKHOWTO) --ps $<
32 mv $@ ps
34 %.txt : %.tex
35 $(MKHOWTO) --text $<
36 mv $@ txt
38 % : %.tex
39 $(MKHOWTO) --html --iconserver="." $<
40 tar -zcvf html/$*.tgz $*
41 #zip -r html/$*.zip $*
43 default:
44 @echo "'all' -- build all files"
45 @echo "'dvi', 'pdf', 'ps', 'txt', 'html' -- build one format"
47 all: $(HTML)
49 .PHONY : dvi pdf ps txt html rst
50 dvi: $(DVI)
52 pdf: $(PDF)
53 ps: $(PS)
54 txt: $(TXT)
55 html:$(HTML)
57 # Rule to build collected tar files
58 dist: #all
59 for i in dvi pdf ps txt ; do \
60 cd $$i ; \
61 tar -zcf All.tgz *.$$i ;\
62 cd .. ;\
63 done
65 # Rule to copy files to the Web tree on AMK's machine
66 web: dist
67 cp dvi/* $(WEBDIR)/dvi
68 cp ps/* $(WEBDIR)/ps
69 cp pdf/* $(WEBDIR)/pdf
70 cp txt/* $(WEBDIR)/txt
71 for dir in $(HTML) ; do cp -rp $$dir $(WEBDIR) ; done
72 for ltx in $(HOWTO) ; do cp -p $$ltx $(WEBDIR)/latex ; done
74 rst: unicode.html
76 %.html: %.rst
77 rst2html $(RSTARGS) $< >$@
79 clean:
80 rm -f *~ *.log *.ind *.l2h *.aux *.toc *.how
81 rm -f *.dvi *.ps *.pdf *.bkm
82 rm -f unicode.html
84 clobber:
85 rm dvi/* ps/* pdf/* txt/* html/*