source: trunk/essentials/dev-lang/python/Doc/tools/sgmlconv/Makefile

Last change on this file was 3225, checked in by bird, 19 years ago

Python 2.5

File size: 1.3 KB
Line 
1# Simple makefile to control XML generation for the entire document tree.
2# This should be used from the top-level directory (Doc/), not the directory
3# that actually contains this file:
4#
5# $ pwd
6# .../Doc
7# $ make -f tools/sgmlconv/Makefile
8
9TOPDIR=.
10TOOLSDIR=tools
11
12SGMLRULES=../$(TOOLSDIR)/sgmlconv/make.rules
13# The 'inst' and 'tut' directories break the conversion, so skip them for now.
14SUBDIRS=api dist ext lib mac ref
15SUBMAKE=$(MAKE) -f $(SGMLRULES) TOOLSDIR=../$(TOOLSDIR)
16
17all: xml
18
19.PHONY: esis xml
20.PHONY: $(SUBDIRS)
21
22xml:
23 for DIR in $(SUBDIRS) ; do \
24 (cd $$DIR && $(SUBMAKE) xml) || exit $$? ; done
25
26esis:
27 for DIR in $(SUBDIRS) ; do \
28 (cd $$DIR && $(SUBMAKE) esis) || exit $$? ; done
29
30esis1:
31 for DIR in $(SUBDIRS) ; do \
32 (cd $$DIR && $(SUBMAKE) esis1) || exit $$? ; done
33
34tarball: xml
35 tar cf - tools/sgmlconv */*.xml | gzip -9 >xml-1.5.2b2.tgz
36
37api:
38 cd api && $(SUBMAKE)
39
40dist:
41 cd dist && $(SUBMAKE)
42
43ext:
44 cd ext && $(SUBMAKE)
45
46inst:
47 cd inst && $(SUBMAKE)
48
49lib:
50 cd lib && $(SUBMAKE)
51
52mac:
53 cd mac && $(SUBMAKE)
54
55ref:
56 cd ref && $(SUBMAKE)
57
58tut:
59 cd tut && $(SUBMAKE)
60
61clean:
62 for DIR in $(SUBDIRS) ; do \
63 (cd $$DIR && $(SUBMAKE) clean) || exit $$? ; done
64
65clobber:
66 for DIR in $(SUBDIRS) ; do \
67 (cd $$DIR && $(SUBMAKE) clobber) || exit $$? ; done
Note: See TracBrowser for help on using the repository browser.