summaryrefslogtreecommitdiffstats
path: root/Doc/info/Makefile
blob: 8a0dfff74b26ffe84dd54328a661214afef80688 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# Generate the Python "info" documentation.

PAPER=letter
TOPDIR=..
TOOLSDIR=$(TOPDIR)/tools
PAPERDIR=$(TOPDIR)/paper-$(PAPER)
HTMLDIR=$(TOPDIR)/html

MKINFO=$(TOOLSDIR)/mkinfo
SCRIPTS=$(TOOLSDIR)/html2texi.pl $(TOOLSDIR)/checkargs.pm $(TOOLSDIR)/mkinfo

all:	python-api.info python-ext.info python-lib.info \
	python-mac.info python-ref.info python-tut.info


python-api.info:	$(HTMLDIR)/api/api.html $(SCRIPTS)
	$(MKINFO) $<

python-ext.info:	$(HTMLDIR)/ext/ext.html $(SCRIPTS)
	$(MKINFO) $<

python-lib.info:	$(HTMLDIR)/lib/lib.html $(SCRIPTS)
	$(MKINFO) $<

python-mac.info:	$(HTMLDIR)/mac/mac.html $(SCRIPTS)
	$(MKINFO) $<

python-ref.info:	$(HTMLDIR)/ref/ref.html $(SCRIPTS)
	$(MKINFO) $<

python-tut.info:	$(HTMLDIR)/tut/tut.html $(SCRIPTS)
	$(MKINFO) $<


clean:
	rm -f *.texi~ *.texi

clobber: clean
	rm -f *.texi python-*.info python-*.info-[0-9]*


# The HTML files are dependent on the .aux files, which are dependent on the
# LaTeX source documents.  This makes sure we can build info files from a
# "clean" tree:

$(HTMLDIR)/api/api.html:  $(PAPERDIR)/api.aux $(BUILDINDEX)
	(cd $(TOPDIR); $(MAKE) htmlapi)

$(HTMLDIR)/ext/ext.html:  $(PAPERDIR)/ext.aux
	(cd $(TOPDIR); $(MAKE) htmlext)

$(HTMLDIR)/lib/lib.html:  $(PAPERDIR)/lib.aux $(BUILDINDEX)
	(cd $(TOPDIR); $(MAKE) htmllib)

$(HTMLDIR)/mac/mac.html:  $(MACFILES) $(BUILDINDEX)
	(cd $(TOPDIR); $(MAKE) htmlmac)

$(HTMLDIR)/ref/ref.html:  $(PAPERDIR)/ref.aux $(BUILDINDEX)
	(cd $(TOPDIR); $(MAKE) htmlref)

$(HTMLDIR)/tut/tut.html:  $(PAPERDIR)/tut.aux
	(cd $(TOPDIR); $(MAKE) htmltut)


include ../Makefile.deps

$(PAPERDIR)/api.aux: $(APIFILES)
	(cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) api.dvi)

$(PAPERDIR)/ext.aux: $(EXTFILES)
	(cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) ext.dvi)

$(PAPERDIR)/lib.aux: $(LIBFILES)
	(cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) lib.dvi)

$(PAPERDIR)/ref.aux: $(REFFILES)
	(cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) ref.dvi)

$(PAPERDIR)/tut.aux: $(TUTFILES)
	(cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) tut.dvi)