mirror of https://github.com/mpv-player/mpv
Minor improvement: don't create empty dirs.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9760 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
3144ba8388
commit
4e11058dd3
|
@ -33,6 +33,9 @@ CHUNK_XSL = /usr/share/sgml/docbook/yelp/docbook/html/chunk.xsl
|
||||||
# List of subdirectories to be processed.
|
# List of subdirectories to be processed.
|
||||||
SUBDIRS = en
|
SUBDIRS = en
|
||||||
|
|
||||||
|
# Here all generated html's go
|
||||||
|
HTML_TOP = ../HTML
|
||||||
|
|
||||||
#####[ End of configuration ]###########################################
|
#####[ End of configuration ]###########################################
|
||||||
|
|
||||||
export CHUNK_XSL SGML_CATALOG_FILES XMLLINT XSLTPROC
|
export CHUNK_XSL SGML_CATALOG_FILES XMLLINT XSLTPROC
|
||||||
|
@ -53,11 +56,11 @@ all: build-html
|
||||||
|
|
||||||
.PHONY: build-html
|
.PHONY: build-html
|
||||||
build-html:
|
build-html:
|
||||||
test -d HTML || mkdir HTML
|
test -d $(HTML_TOP) || mkdir $(HTML_TOP)
|
||||||
for d in $(SUBDIRS); do\
|
for d in $(SUBDIRS); do\
|
||||||
test -f $$d/Makefile &&\
|
test -f $$d/Makefile &&\
|
||||||
(test -d HTML/$$d || mkdir HTML/$$d) &&\
|
(test -d $(HTML_TOP)/$$d || mkdir $(HTML_TOP)/$$d) &&\
|
||||||
if $(MAKE) HTMLDIR=../../HTML/$$d -C $$d; then :; else exit 1; fi;\
|
if $(MAKE) HTMLDIR=../$(HTML_TOP)/$$d -C $$d; then :; else exit 1; fi;\
|
||||||
done
|
done
|
||||||
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
|
@ -69,7 +72,7 @@ test:
|
||||||
|
|
||||||
.PHONY: clean-html
|
.PHONY: clean-html
|
||||||
clean-html:
|
clean-html:
|
||||||
-rm -rf ../HTML
|
-rm -rf $(HTML_TOP)
|
||||||
|
|
||||||
.PHONY: distclean
|
.PHONY: distclean
|
||||||
distclean: clean-html
|
distclean: clean-html
|
||||||
|
|
Loading…
Reference in New Issue