changeset 15171:c047b2d7f7ce

releaseclean should now work as expected, crate of Coke going in my direction.
author diego
date Fri, 15 Apr 2005 23:23:43 +0000
parents 634d1b91e852
children 56541efe420b
files DOCS/xml/Makefile
diffstat 1 files changed, 10 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/DOCS/xml/Makefile	Fri Apr 15 23:15:26 2005 +0000
+++ b/DOCS/xml/Makefile	Fri Apr 15 23:23:43 2005 +0000
@@ -28,6 +28,8 @@
 	@echo "clean             : Purge the 'HTML' and 'HTML-single' directories."
 	@echo "releaseclean      : Remove generated files but keep the HTML."
 	@echo "distclean         : Remove ALL generated files."
+	@echo "clean-LANG        : Remove HTML files for one language."
+	@echo "releaseclean-LANG : Remove generated files for one language."
 	@echo "distclean-LANG    : Remove ALL generated files for one language."
 	@echo "Substitute LANG for one of $(SUBDIRS)"
 
@@ -53,7 +55,7 @@
 	-rm -rf $(HTML_SINGLE)
 
 .PHONY: releaseclean distclean clean
-releaseclean: $(addprefix distclean-,$(SUBDIRS))
+releaseclean: $(addprefix releaseclean-,$(SUBDIRS))
 	-rm -f html-chunk.xsl html-single.xsl xsltproc.sh xmllint.sh
 
 distclean: clean releaseclean
@@ -64,7 +66,8 @@
 clean: clean-html-chunked clean-html-single
 
 define lang-def
-.PHONY: html-chunked-$(1) html-single-$(1) xmllint-$(1) distclean-$(1)
+.PHONY: html-chunked-$(1) html-single-$(1) xmllint-$(1) \
+  distclean-$(1) releaseclean-$(1) clean-$(1)
 html-chunked-$(1): xsltproc.sh xmllint.sh chunked-dir
 	(test -d $(HTML_CHUNKED)/$(1) || mkdir $(HTML_CHUNKED)/$(1))
 	$(MAKE) HTMLDIR=../$(HTML_CHUNKED)/$(1) -C $(1) html-chunked
@@ -76,8 +79,12 @@
 xmllint-$(1): xmllint.sh
 	$(MAKE) HTMLFILE=../$(HTML_SINGLE)/$(1)/MPlayer.html -C $(1) xmllint
 
-distclean-$(1):
+distclean-$(1): clean-$(1) releaseclean-$(1)
+
+clean-$(1):
 	-rm -rf $(HTML_SINGLE)/$(1) $(HTML_CHUNKED)/$(1)
+
+releaseclean-$(1):
 	$(MAKE) HTMLDIR=../$(HTML_CHUNKED)/$(1) -C $(1) distclean
 endef