Merge all .PHONY target declarations.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22485 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
diego 2007-03-07 12:41:03 +00:00
parent 306f6243fd
commit 9a4588b2bf
1 changed files with 3 additions and 10 deletions

View File

@ -9,10 +9,8 @@ HTML_CHUNKED = ../HTML
# Generated single HTML files go here.
HTML_SINGLE = ../HTML-single
.PHONY: all
all: html-chunked html-single
.PHONY: help
help:
@echo "Targets:"
@echo "********"
@ -33,28 +31,22 @@ help:
@echo "distclean-LANG : Remove ALL generated files for one language."
@echo "Substitute LANG for one of $(SUBDIRS)"
.PHONY: html-chunked chunked-dir
html-chunked: xsltproc.sh xmllint.sh chunked-dir $(addprefix html-chunked-,$(SUBDIRS))
chunked-dir:
-mkdir -p $(HTML_CHUNKED)
.PHONY: html-single single-dir
html-single: xsltproc.sh xmllint.sh single-dir $(addprefix html-single-,$(SUBDIRS))
single-dir:
-mkdir -p $(HTML_SINGLE)
.PHONY: xmllint
xmllint: xmllint.sh $(addprefix xmllint-,$(SUBDIRS))
.PHONY: clean-html-chunked
clean-html-chunked:
-rm -rf $(HTML_CHUNKED)
.PHONY: clean-html-single
clean-html-single:
-rm -rf $(HTML_SINGLE)
.PHONY: releaseclean distclean clean
releaseclean: $(addprefix releaseclean-,$(SUBDIRS))
-rm -f html-chunk.xsl html-single.xsl xsltproc.sh xmllint.sh
@ -66,8 +58,6 @@ xsltproc.sh xmllint.sh:
clean: clean-html-chunked clean-html-single
define lang-def
.PHONY: html-chunked-$(1) html-single-$(1) xmllint-$(1) \
distclean-$(1) releaseclean-$(1) clean-$(1)
html-chunked-$(1): xsltproc.sh xmllint.sh chunked-dir
-(mkdir -p $(HTML_CHUNKED)/$(1))
$(MAKE) HTMLDIR=../$(HTML_CHUNKED)/$(1) -C $(1) html-chunked
@ -89,3 +79,6 @@ releaseclean-$(1):
endef
$(foreach lang, $(SUBDIRS),$(eval $(call lang-def,$(lang))))
.PHONY: all help html-chunked* chunked-dir html-single* single-dir xmllint*
.PHONY: clean-html-chunked clean-html-single releaseclean* distclean* clean*