[MPlayer-DOCS] r28256 - in trunk/DOCS/xml: Makefile Makefile.inc

diego subversion at mplayerhq.hu
Mon Jan 5 01:04:36 CET 2009


Author: diego
Date: Mon Jan  5 01:04:34 2009
New Revision: 28256

Log:
nonrecursive releaseclean target

Modified:
   trunk/DOCS/xml/Makefile
   trunk/DOCS/xml/Makefile.inc

Modified: trunk/DOCS/xml/Makefile
==============================================================================
--- trunk/DOCS/xml/Makefile	Mon Jan  5 01:01:55 2009	(r28255)
+++ trunk/DOCS/xml/Makefile	Mon Jan  5 01:04:34 2009	(r28256)
@@ -23,7 +23,6 @@ help:
 	@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 @@ html-single-$(1): xsltproc.sh xmllint.sh
 
 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 @@ $(foreach lang, $(DOC_LANG_ALL),$(eval $
 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

Modified: trunk/DOCS/xml/Makefile.inc
==============================================================================
--- trunk/DOCS/xml/Makefile.inc	Mon Jan  5 01:01:55 2009	(r28255)
+++ trunk/DOCS/xml/Makefile.inc	Mon Jan  5 01:04:34 2009	(r28256)
@@ -73,8 +73,4 @@ $(filter-out main.xml, $(patsubst ../en/
 	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



More information about the MPlayer-DOCS mailing list