changeset 28221:ded986da716f

nonrecursive releaseclean target
author diego
date Mon, 05 Jan 2009 00:04:34 +0000
parents e8a6bde9ef9e
children f97b67465500
files DOCS/xml/Makefile DOCS/xml/Makefile.inc
diffstat 2 files changed, 4 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/DOCS/xml/Makefile	Mon Jan 05 00:01:55 2009 +0000
+++ b/DOCS/xml/Makefile	Mon Jan 05 00:04:34 2009 +0000
@@ -23,7 +23,6 @@
 	@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 "releaseclean-LANG : Remove generated files for one language."
 	@echo "Substitute LANG for one of $(DOC_LANG_ALL)"
 
 html-chunked: xsltproc.sh xmllint.sh $(HTML_CHUNKED) $(addprefix html-chunked-,$(DOC_LANGS))
@@ -49,9 +48,6 @@
 
 xmllint-$(1): xmllint.sh
 	$(MAKE) HTMLFILE=../$(HTML_SINGLE)/$(1)/MPlayer.html -C $(1) xmllint
-
-releaseclean-$(1):
-	$(MAKE) HTMLDIR=../$(HTML_CHUNKED)/$(1) -C $(1) distclean
 endef
 
 $(foreach lang, $(DOC_LANG_ALL),$(eval $(call lang-def,$(lang))))
@@ -59,7 +55,9 @@
 clean:
 	rm -rf $(HTML_CHUNKED) $(HTML_SINGLE)
 
-releaseclean: $(addprefix releaseclean-,$(DOC_LANG_ALL))
+releaseclean:
+	rm -f $(foreach lang,$(DOC_LANG_ALL),$(lang)/main.xml)
+	rm -f $$(find . -name *.xml -type l)
 	-rm -f html-chunk.xsl html-single.xsl xsltproc.sh xmllint.sh
 
 distclean: clean releaseclean
--- a/DOCS/xml/Makefile.inc	Mon Jan 05 00:01:55 2009 +0000
+++ b/DOCS/xml/Makefile.inc	Mon Jan 05 00:04:34 2009 +0000
@@ -73,8 +73,4 @@
 	fi; \
 	done
 
-distclean:
-	rm -f main.xml
-	rm -f `find *.xml -type l`;
-
-.PHONY: all html-chunked html-single xmllint distclean
+.PHONY: all html-chunked html-single xmllint