mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
"Driver" makefile to convert all documents to SGML or XML at once.
This commit is contained in:
parent
7727416686
commit
3a7a3d745d
1 changed files with 29 additions and 0 deletions
29
Doc/tools/sgmlconv/Makefile
Normal file
29
Doc/tools/sgmlconv/Makefile
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
# 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
|
Loading…
Add table
Add a link
Reference in a new issue