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 |
| 18 | |
| 19 | sgml: |
| 20 | for DIR in $(SUBDIRS) ; do \ |
| 21 | (cd $$DIR; \ |
| 22 | $(MAKE) -f $(SGMLRULES) TOOLSDIR=../$(TOOLSDIR) sgml) \ |
| 23 | done |
| 24 | |
| 25 | xml: |
| 26 | for DIR in $(SUBDIRS) ; do \ |
| 27 | (cd $$DIR; \ |
| 28 | $(MAKE) -f $(SGMLRULES) TOOLSDIR=../$(TOOLSDIR) xml) \ |
| 29 | done |
Fred Drake | a50a1df | 1999-01-14 18:26:23 +0000 | [diff] [blame] | 30 | |
Fred Drake | 589bc63 | 1999-01-14 22:35:05 +0000 | [diff] [blame^] | 31 | tarball: |
| 32 | tar cf - tools/sgmlconv */*.sgml | gzip -9 >sgml-1.5.2b1.tgz |
| 33 | |
Fred Drake | a50a1df | 1999-01-14 18:26:23 +0000 | [diff] [blame] | 34 | clean: |
| 35 | for DIR in $(SUBDIRS) ; do \ |
| 36 | (cd $$DIR; \ |
| 37 | $(MAKE) -f $(SGMLRULES) TOOLSDIR=../$(TOOLSDIR) clean) \ |
| 38 | done |
| 39 | |
| 40 | clobber: |
| 41 | for DIR in $(SUBDIRS) ; do \ |
| 42 | (cd $$DIR; \ |
| 43 | $(MAKE) -f $(SGMLRULES) TOOLSDIR=../$(TOOLSDIR) clobber) \ |
| 44 | done |