From 3a7a3d745d771caeb5e5798b1d707b6f43646ced Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Thu, 14 Jan 1999 18:13:59 +0000 Subject: [PATCH] "Driver" makefile to convert all documents to SGML or XML at once. --- Doc/tools/sgmlconv/Makefile | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Doc/tools/sgmlconv/Makefile diff --git a/Doc/tools/sgmlconv/Makefile b/Doc/tools/sgmlconv/Makefile new file mode 100644 index 00000000000..74167189407 --- /dev/null +++ b/Doc/tools/sgmlconv/Makefile @@ -0,0 +1,29 @@ +# Simple makefile to control SGML generation for the entire document tree. +# This should be used from the top-level directory (Doc/), not the directory +# that actually contains this file: +# +# $ pwd +# .../Doc +# $ make -f tools/sgmlconv/Makefile + +TOPDIR=. +TOOLSDIR=$(TOPDIR)/tools + +SGMLRULES=../$(TOOLSDIR)/sgmlconv/make.rules +SUBDIRS=api ext lib mac ref tut + +all: sgml + +.PHONY: sgml xml + +sgml: + for DIR in $(SUBDIRS) ; do \ + (cd $$DIR; \ + $(MAKE) -f $(SGMLRULES) TOOLSDIR=../$(TOOLSDIR) sgml) \ + done + +xml: + for DIR in $(SUBDIRS) ; do \ + (cd $$DIR; \ + $(MAKE) -f $(SGMLRULES) TOOLSDIR=../$(TOOLSDIR) xml) \ + done