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