Fred Drake | 3a7a3d7 | 1999-01-14 18:13:59 +0000 | [diff] [blame] | 1 | # Simple makefile to control SGML 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 | |||||
9 | TOPDIR=. | ||||
10 | TOOLSDIR=$(TOPDIR)/tools | ||||
11 | |||||
12 | SGMLRULES=../$(TOOLSDIR)/sgmlconv/make.rules | ||||
13 | SUBDIRS=api ext lib mac ref tut | ||||
Fred Drake | 3618c14 | 1999-02-15 16:50:28 +0000 | [diff] [blame^] | 14 | SUBMAKE=$(MAKE) -f $(SGMLRULES) TOOLSDIR=../$(TOOLSDIR) |
Fred Drake | 3a7a3d7 | 1999-01-14 18:13:59 +0000 | [diff] [blame] | 15 | |
16 | all: sgml | ||||
17 | |||||
18 | .PHONY: sgml xml | ||||
Fred Drake | 0a5b8de | 1999-01-20 17:26:56 +0000 | [diff] [blame] | 19 | .PHONY: $(SUBDIRS) |
Fred Drake | 3a7a3d7 | 1999-01-14 18:13:59 +0000 | [diff] [blame] | 20 | |
21 | sgml: | ||||
22 | for DIR in $(SUBDIRS) ; do \ | ||||
Fred Drake | 3618c14 | 1999-02-15 16:50:28 +0000 | [diff] [blame^] | 23 | (cd $$DIR; $(SUBMAKE) sgml) || exit $$? ; done |
Fred Drake | 3a7a3d7 | 1999-01-14 18:13:59 +0000 | [diff] [blame] | 24 | |
25 | xml: | ||||
26 | for DIR in $(SUBDIRS) ; do \ | ||||
Fred Drake | 3618c14 | 1999-02-15 16:50:28 +0000 | [diff] [blame^] | 27 | (cd $$DIR; $(SUBMAKE) xml) || exit $$? ; done |
28 | |||||
29 | esis: | ||||
30 | for DIR in $(SUBDIRS) ; do \ | ||||
31 | (cd $$DIR; $(SUBMAKE) esis) || exit $$? ; done | ||||
Fred Drake | a50a1df | 1999-01-14 18:26:23 +0000 | [diff] [blame] | 32 | |
Fred Drake | 0a5b8de | 1999-01-20 17:26:56 +0000 | [diff] [blame] | 33 | tarball: sgml |
Fred Drake | 3618c14 | 1999-02-15 16:50:28 +0000 | [diff] [blame^] | 34 | tar cf - sgml tools/sgmlconv */*.sgml | gzip -9 >sgml-1.5.2b2.tgz |
Fred Drake | 589bc63 | 1999-01-14 22:35:05 +0000 | [diff] [blame] | 35 | |
Fred Drake | 0a5b8de | 1999-01-20 17:26:56 +0000 | [diff] [blame] | 36 | api: |
Fred Drake | 3618c14 | 1999-02-15 16:50:28 +0000 | [diff] [blame^] | 37 | cd api; $(SUBMAKE) |
Fred Drake | 0a5b8de | 1999-01-20 17:26:56 +0000 | [diff] [blame] | 38 | |
39 | ext: | ||||
Fred Drake | 3618c14 | 1999-02-15 16:50:28 +0000 | [diff] [blame^] | 40 | cd ext; $(SUBMAKE) |
Fred Drake | 0a5b8de | 1999-01-20 17:26:56 +0000 | [diff] [blame] | 41 | |
42 | lib: | ||||
Fred Drake | 3618c14 | 1999-02-15 16:50:28 +0000 | [diff] [blame^] | 43 | cd lib; $(SUBMAKE) |
Fred Drake | 0a5b8de | 1999-01-20 17:26:56 +0000 | [diff] [blame] | 44 | |
45 | mac: | ||||
Fred Drake | 3618c14 | 1999-02-15 16:50:28 +0000 | [diff] [blame^] | 46 | cd mac; $(SUBMAKE) |
Fred Drake | 0a5b8de | 1999-01-20 17:26:56 +0000 | [diff] [blame] | 47 | |
48 | ref: | ||||
Fred Drake | 3618c14 | 1999-02-15 16:50:28 +0000 | [diff] [blame^] | 49 | cd ref; $(SUBMAKE) |
Fred Drake | 0a5b8de | 1999-01-20 17:26:56 +0000 | [diff] [blame] | 50 | |
51 | tut: | ||||
Fred Drake | 3618c14 | 1999-02-15 16:50:28 +0000 | [diff] [blame^] | 52 | cd tut; $(SUBMAKE) |
Fred Drake | 0a5b8de | 1999-01-20 17:26:56 +0000 | [diff] [blame] | 53 | |
Fred Drake | a50a1df | 1999-01-14 18:26:23 +0000 | [diff] [blame] | 54 | clean: |
55 | for DIR in $(SUBDIRS) ; do \ | ||||
Fred Drake | 3618c14 | 1999-02-15 16:50:28 +0000 | [diff] [blame^] | 56 | (cd $$DIR; $(SUBMAKE) clean) ; done |
Fred Drake | a50a1df | 1999-01-14 18:26:23 +0000 | [diff] [blame] | 57 | |
58 | clobber: | ||||
59 | for DIR in $(SUBDIRS) ; do \ | ||||
Fred Drake | 3618c14 | 1999-02-15 16:50:28 +0000 | [diff] [blame^] | 60 | (cd $$DIR; $(SUBMAKE) clobber) ; done |