blob: 7437933b259be48735ade9c308142949395cd250 [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
Fred Drake0a5b8de1999-01-20 17:26:56 +000018.PHONY: $(SUBDIRS)
Fred Drake3a7a3d71999-01-14 18:13:59 +000019
20sgml:
21 for DIR in $(SUBDIRS) ; do \
22 (cd $$DIR; \
Fred Drake0a5b8de1999-01-20 17:26:56 +000023 $(MAKE) -f $(SGMLRULES) TOOLSDIR=../$(TOOLSDIR) sgml) || exit $$?; \
Fred Drake3a7a3d71999-01-14 18:13:59 +000024 done
25
26xml:
27 for DIR in $(SUBDIRS) ; do \
28 (cd $$DIR; \
Fred Drake0a5b8de1999-01-20 17:26:56 +000029 $(MAKE) -f $(SGMLRULES) TOOLSDIR=../$(TOOLSDIR) xml) || exit $$?; \
Fred Drake3a7a3d71999-01-14 18:13:59 +000030 done
Fred Drakea50a1df1999-01-14 18:26:23 +000031
Fred Drake0a5b8de1999-01-20 17:26:56 +000032tarball: sgml
Fred Drake589bc631999-01-14 22:35:05 +000033 tar cf - tools/sgmlconv */*.sgml | gzip -9 >sgml-1.5.2b1.tgz
34
Fred Drake0a5b8de1999-01-20 17:26:56 +000035api:
36 cd api; $(MAKE) -f $(SGMLRULES) TOOLSDIR=../$(TOOLSDIR)
37
38ext:
39 cd ext; $(MAKE) -f $(SGMLRULES) TOOLSDIR=../$(TOOLSDIR)
40
41lib:
42 cd lib; $(MAKE) -f $(SGMLRULES) TOOLSDIR=../$(TOOLSDIR)
43
44mac:
45 cd mac; $(MAKE) -f $(SGMLRULES) TOOLSDIR=../$(TOOLSDIR)
46
47ref:
48 cd ref; $(MAKE) -f $(SGMLRULES) TOOLSDIR=../$(TOOLSDIR)
49
50tut:
51 cd tut; $(MAKE) -f $(SGMLRULES) TOOLSDIR=../$(TOOLSDIR)
52
Fred Drakea50a1df1999-01-14 18:26:23 +000053clean:
54 for DIR in $(SUBDIRS) ; do \
55 (cd $$DIR; \
56 $(MAKE) -f $(SGMLRULES) TOOLSDIR=../$(TOOLSDIR) clean) \
57 done
58
59clobber:
60 for DIR in $(SUBDIRS) ; do \
61 (cd $$DIR; \
62 $(MAKE) -f $(SGMLRULES) TOOLSDIR=../$(TOOLSDIR) clobber) \
63 done