blob: 3574fea7cd86e7dfbc23e231c73b392b66e1661b [file] [log] [blame]
Fred Drake3a7a3d71999-01-14 18:13:59 +00001# 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
9TOPDIR=.
10TOOLSDIR=$(TOPDIR)/tools
11
12SGMLRULES=../$(TOOLSDIR)/sgmlconv/make.rules
13SUBDIRS=api ext lib mac ref tut
14
15all: sgml
16
17.PHONY: sgml xml
18
19sgml:
20 for DIR in $(SUBDIRS) ; do \
21 (cd $$DIR; \
22 $(MAKE) -f $(SGMLRULES) TOOLSDIR=../$(TOOLSDIR) sgml) \
23 done
24
25xml:
26 for DIR in $(SUBDIRS) ; do \
27 (cd $$DIR; \
28 $(MAKE) -f $(SGMLRULES) TOOLSDIR=../$(TOOLSDIR) xml) \
29 done
Fred Drakea50a1df1999-01-14 18:26:23 +000030
31clean:
32 for DIR in $(SUBDIRS) ; do \
33 (cd $$DIR; \
34 $(MAKE) -f $(SGMLRULES) TOOLSDIR=../$(TOOLSDIR) clean) \
35 done
36
37clobber:
38 for DIR in $(SUBDIRS) ; do \
39 (cd $$DIR; \
40 $(MAKE) -f $(SGMLRULES) TOOLSDIR=../$(TOOLSDIR) clobber) \
41 done