1999-01-14 14:13:59 -04:00
|
|
|
# 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
|
1999-01-20 13:26:56 -04:00
|
|
|
.PHONY: $(SUBDIRS)
|
1999-01-14 14:13:59 -04:00
|
|
|
|
|
|
|
sgml:
|
|
|
|
for DIR in $(SUBDIRS) ; do \
|
|
|
|
(cd $$DIR; \
|
1999-01-20 13:26:56 -04:00
|
|
|
$(MAKE) -f $(SGMLRULES) TOOLSDIR=../$(TOOLSDIR) sgml) || exit $$?; \
|
1999-01-14 14:13:59 -04:00
|
|
|
done
|
|
|
|
|
|
|
|
xml:
|
|
|
|
for DIR in $(SUBDIRS) ; do \
|
|
|
|
(cd $$DIR; \
|
1999-01-20 13:26:56 -04:00
|
|
|
$(MAKE) -f $(SGMLRULES) TOOLSDIR=../$(TOOLSDIR) xml) || exit $$?; \
|
1999-01-14 14:13:59 -04:00
|
|
|
done
|
1999-01-14 14:26:23 -04:00
|
|
|
|
1999-01-20 13:26:56 -04:00
|
|
|
tarball: sgml
|
1999-01-29 17:22:55 -04:00
|
|
|
tar cf - sgml tools/sgmlconv */*.sgml | gzip -9 >sgml-1.5.2b1.tgz
|
1999-01-14 18:35:05 -04:00
|
|
|
|
1999-01-20 13:26:56 -04:00
|
|
|
api:
|
|
|
|
cd api; $(MAKE) -f $(SGMLRULES) TOOLSDIR=../$(TOOLSDIR)
|
|
|
|
|
|
|
|
ext:
|
|
|
|
cd ext; $(MAKE) -f $(SGMLRULES) TOOLSDIR=../$(TOOLSDIR)
|
|
|
|
|
|
|
|
lib:
|
|
|
|
cd lib; $(MAKE) -f $(SGMLRULES) TOOLSDIR=../$(TOOLSDIR)
|
|
|
|
|
|
|
|
mac:
|
|
|
|
cd mac; $(MAKE) -f $(SGMLRULES) TOOLSDIR=../$(TOOLSDIR)
|
|
|
|
|
|
|
|
ref:
|
|
|
|
cd ref; $(MAKE) -f $(SGMLRULES) TOOLSDIR=../$(TOOLSDIR)
|
|
|
|
|
|
|
|
tut:
|
|
|
|
cd tut; $(MAKE) -f $(SGMLRULES) TOOLSDIR=../$(TOOLSDIR)
|
|
|
|
|
1999-01-14 14:26:23 -04:00
|
|
|
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
|