diff options
author | Fred Drake <fdrake@acm.org> | 1999-02-15 16:50:28 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 1999-02-15 16:50:28 (GMT) |
commit | 3618c14f72277e8f4cc8c3faeafeef011eaf4117 (patch) | |
tree | 6eb2878444d9fe7979f6e8e1129202688a08c2e0 /Doc/tools/sgmlconv | |
parent | aa1afa8d308b4c17b2e79b3df6b40b988e42f8be (diff) | |
download | cpython-3618c14f72277e8f4cc8c3faeafeef011eaf4117.zip cpython-3618c14f72277e8f4cc8c3faeafeef011eaf4117.tar.gz cpython-3618c14f72277e8f4cc8c3faeafeef011eaf4117.tar.bz2 |
Use a common definition for $(SUBMAKE) instead of repeating everything
all over the place.
Diffstat (limited to 'Doc/tools/sgmlconv')
-rw-r--r-- | Doc/tools/sgmlconv/Makefile | 35 |
1 files changed, 16 insertions, 19 deletions
diff --git a/Doc/tools/sgmlconv/Makefile b/Doc/tools/sgmlconv/Makefile index 6d87cc0..a4daf13 100644 --- a/Doc/tools/sgmlconv/Makefile +++ b/Doc/tools/sgmlconv/Makefile @@ -11,6 +11,7 @@ TOOLSDIR=$(TOPDIR)/tools SGMLRULES=../$(TOOLSDIR)/sgmlconv/make.rules SUBDIRS=api ext lib mac ref tut +SUBMAKE=$(MAKE) -f $(SGMLRULES) TOOLSDIR=../$(TOOLSDIR) all: sgml @@ -19,45 +20,41 @@ all: sgml sgml: for DIR in $(SUBDIRS) ; do \ - (cd $$DIR; \ - $(MAKE) -f $(SGMLRULES) TOOLSDIR=../$(TOOLSDIR) sgml) || exit $$?; \ - done + (cd $$DIR; $(SUBMAKE) sgml) || exit $$? ; done xml: for DIR in $(SUBDIRS) ; do \ - (cd $$DIR; \ - $(MAKE) -f $(SGMLRULES) TOOLSDIR=../$(TOOLSDIR) xml) || exit $$?; \ - done + (cd $$DIR; $(SUBMAKE) xml) || exit $$? ; done + +esis: + for DIR in $(SUBDIRS) ; do \ + (cd $$DIR; $(SUBMAKE) esis) || exit $$? ; done tarball: sgml - tar cf - sgml tools/sgmlconv */*.sgml | gzip -9 >sgml-1.5.2b1.tgz + tar cf - sgml tools/sgmlconv */*.sgml | gzip -9 >sgml-1.5.2b2.tgz api: - cd api; $(MAKE) -f $(SGMLRULES) TOOLSDIR=../$(TOOLSDIR) + cd api; $(SUBMAKE) ext: - cd ext; $(MAKE) -f $(SGMLRULES) TOOLSDIR=../$(TOOLSDIR) + cd ext; $(SUBMAKE) lib: - cd lib; $(MAKE) -f $(SGMLRULES) TOOLSDIR=../$(TOOLSDIR) + cd lib; $(SUBMAKE) mac: - cd mac; $(MAKE) -f $(SGMLRULES) TOOLSDIR=../$(TOOLSDIR) + cd mac; $(SUBMAKE) ref: - cd ref; $(MAKE) -f $(SGMLRULES) TOOLSDIR=../$(TOOLSDIR) + cd ref; $(SUBMAKE) tut: - cd tut; $(MAKE) -f $(SGMLRULES) TOOLSDIR=../$(TOOLSDIR) + cd tut; $(SUBMAKE) clean: for DIR in $(SUBDIRS) ; do \ - (cd $$DIR; \ - $(MAKE) -f $(SGMLRULES) TOOLSDIR=../$(TOOLSDIR) clean) \ - done + (cd $$DIR; $(SUBMAKE) clean) ; done clobber: for DIR in $(SUBDIRS) ; do \ - (cd $$DIR; \ - $(MAKE) -f $(SGMLRULES) TOOLSDIR=../$(TOOLSDIR) clobber) \ - done + (cd $$DIR; $(SUBMAKE) clobber) ; done |