summaryrefslogtreecommitdiffstats
path: root/Doc/tools
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1999-01-14 18:26:23 (GMT)
committerFred Drake <fdrake@acm.org>1999-01-14 18:26:23 (GMT)
commita50a1df588fced269b4785615aea909289efa6e4 (patch)
tree09e7f1b592d9e5ca731d7b4c4b9f08828509f2ee /Doc/tools
parent54bad44f254848ae92a63ffadf9284d2e7f759e3 (diff)
downloadcpython-a50a1df588fced269b4785615aea909289efa6e4.zip
cpython-a50a1df588fced269b4785615aea909289efa6e4.tar.gz
cpython-a50a1df588fced269b4785615aea909289efa6e4.tar.bz2
Added clean and clobber targets.
Diffstat (limited to 'Doc/tools')
-rw-r--r--Doc/tools/sgmlconv/Makefile12
-rw-r--r--Doc/tools/sgmlconv/make.rules7
2 files changed, 19 insertions, 0 deletions
diff --git a/Doc/tools/sgmlconv/Makefile b/Doc/tools/sgmlconv/Makefile
index 7416718..3574fea 100644
--- a/Doc/tools/sgmlconv/Makefile
+++ b/Doc/tools/sgmlconv/Makefile
@@ -27,3 +27,15 @@ xml:
(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
diff --git a/Doc/tools/sgmlconv/make.rules b/Doc/tools/sgmlconv/make.rules
index 1768254..7f74fd7 100644
--- a/Doc/tools/sgmlconv/make.rules
+++ b/Doc/tools/sgmlconv/make.rules
@@ -35,3 +35,10 @@ $(XMLTARGETS): $(ESIS2ML) $(FIXGES)
.esis.xml:
$(ESIS2ML) --xml $< | $(FIXGES) > $@
+
+
+clean:
+ rm -f *.esis
+
+clobber: clean
+ rm -f *.sgml *.xml