summaryrefslogtreecommitdiffstats
path: root/Doc/tools/sgmlconv/Makefile
blob: 3574fea7cd86e7dfbc23e231c73b392b66e1661b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# 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

clean:
	for DIR in $(SUBDIRS) ; do \
	    (cd $$DIR; \
	     $(MAKE) -f $(SGMLRULES) TOOLSDIR=../$(TOOLSDIR) clean) \
	done

clobber:
	for DIR in $(SUBDIRS) ; do \
	    (cd $$DIR; \
	     $(MAKE) -f $(SGMLRULES) TOOLSDIR=../$(TOOLSDIR) clobber) \
	done