mirror of https://github.com/mpv-player/mpv
Simplify mkdir calls, test is not necessary before creating directories,
discarding the return value of mkdir is just as good. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17964 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
1bfd7289f8
commit
eaa4eee69c
|
@ -36,12 +36,12 @@ help:
|
|||
.PHONY: html-chunked chunked-dir
|
||||
html-chunked: xsltproc.sh xmllint.sh chunked-dir $(addprefix html-chunked-,$(SUBDIRS))
|
||||
chunked-dir:
|
||||
test -d $(HTML_CHUNKED) || mkdir $(HTML_CHUNKED)
|
||||
-mkdir $(HTML_CHUNKED)
|
||||
|
||||
.PHONY: html-single single-dir
|
||||
html-single: xsltproc.sh xmllint.sh single-dir $(addprefix html-single-,$(SUBDIRS))
|
||||
single-dir:
|
||||
test -d $(HTML_SINGLE) || mkdir $(HTML_SINGLE)
|
||||
-mkdir $(HTML_SINGLE)
|
||||
|
||||
.PHONY: xmllint
|
||||
xmllint: xmllint.sh $(addprefix xmllint-,$(SUBDIRS))
|
||||
|
@ -69,11 +69,11 @@ 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
|
||||
(test -d $(HTML_CHUNKED)/$(1) || mkdir $(HTML_CHUNKED)/$(1))
|
||||
-(mkdir $(HTML_CHUNKED)/$(1))
|
||||
$(MAKE) HTMLDIR=../$(HTML_CHUNKED)/$(1) -C $(1) html-chunked
|
||||
|
||||
html-single-$(1): xsltproc.sh xmllint.sh single-dir
|
||||
(test -d $(HTML_SINGLE)/$(1) || mkdir $(HTML_SINGLE)/$(1))
|
||||
-(mkdir $(HTML_SINGLE)/$(1))
|
||||
$(MAKE) HTMLFILE=../$(HTML_SINGLE)/$(1)/MPlayer.html -C $(1) html-single
|
||||
|
||||
xmllint-$(1): xmllint.sh
|
||||
|
|
Loading…
Reference in New Issue