Makefile 1.59 KB
Newer Older
1 2
# Generate the Python "info" documentation.

3 4 5
TOPDIR=..
TOOLSDIR=$(TOPDIR)/tools
HTMLDIR=$(TOPDIR)/html
6

7
MKINFO=$(TOOLSDIR)/mkinfo
8 9
SCRIPTS=$(TOOLSDIR)/html2texi.pl $(TOOLSDIR)/checkargs.pm $(TOOLSDIR)/mkinfo \
	$(TOOLSDIR)/fixinfo.el
10

11
all:	python-api.info python-ext.info python-lib.info \
12 13
	python-ref.info python-tut.info \
	python-dist.info python-inst.info
14 15


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

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

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

25
# Not built by default; the conversion doesn't really handle it well.
26 27 28 29 30 31 32 33
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) $<
34

35 36 37 38 39
python-dist.info:	$(HTMLDIR)/dist/dist.html $(SCRIPTS)
	$(MKINFO) $<

python-inst.info:	$(HTMLDIR)/inst/inst.html $(SCRIPTS)
	$(MKINFO) $<
40 41

clean:
42
	rm -f *.texi~ *.texi
43 44

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


48 49
# This makes sure we can build info files from a "clean" tree,
# in case we haven't already built the HTML:
50

51 52
$(HTMLDIR)/api/api.html:
	(cd $(HTMLDIR); $(MAKE) api)
53

54 55
$(HTMLDIR)/ext/ext.html:
	(cd $(HTMLDIR); $(MAKE) ext)
56

57 58
$(HTMLDIR)/lib/lib.html:
	(cd $(HTMLDIR); $(MAKE) lib)
59

60 61
$(HTMLDIR)/mac/mac.html:
	(cd $(HTMLDIR); $(MAKE) mac)
62

63 64
$(HTMLDIR)/ref/ref.html:
	(cd $(HTMLDIR); $(MAKE) ref)
65

66 67
$(HTMLDIR)/tut/tut.html:
	(cd $(HTMLDIR); $(MAKE) tut)
68

69 70
$(HTMLDIR)/dist/dist.html:
	(cd $(HTMLDIR); $(MAKE) dist)
71

72 73
$(HTMLDIR)/inst/inst.html:
	(cd $(HTMLDIR); $(MAKE) inst)