cpython/Doc/tools/sgmlconv/Makefile

45 lines
959 B
Makefile
Raw Normal View History

# 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
1999-01-14 18:26:23 +00:00
1999-01-14 22:35:05 +00:00
tarball:
tar cf - tools/sgmlconv */*.sgml | gzip -9 >sgml-1.5.2b1.tgz
1999-01-14 18:26:23 +00: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