summaryrefslogtreecommitdiffstats
path: root/DOCS
diff options
context:
space:
mode:
authorlumag <lumag@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-03-30 18:48:23 +0000
committerlumag <lumag@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-03-30 18:48:23 +0000
commit4e11058dd31678726c8f730797b5e4af75106ee0 (patch)
tree35a68a8c6b0a670754d019f6857d0965af28f32c /DOCS
parent3144ba838851dd58e79287b62c9b1dce87279932 (diff)
downloadmpv-4e11058dd31678726c8f730797b5e4af75106ee0.tar.bz2
mpv-4e11058dd31678726c8f730797b5e4af75106ee0.tar.xz
Minor improvement: don't create empty dirs.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9760 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'DOCS')
-rw-r--r--DOCS/xml/Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/DOCS/xml/Makefile b/DOCS/xml/Makefile
index b6b8492552..93b0529085 100644
--- a/DOCS/xml/Makefile
+++ b/DOCS/xml/Makefile
@@ -33,6 +33,9 @@ CHUNK_XSL = /usr/share/sgml/docbook/yelp/docbook/html/chunk.xsl
# List of subdirectories to be processed.
SUBDIRS = en
+# Here all generated html's go
+HTML_TOP = ../HTML
+
#####[ End of configuration ]###########################################
export CHUNK_XSL SGML_CATALOG_FILES XMLLINT XSLTPROC
@@ -53,11 +56,11 @@ all: build-html
.PHONY: build-html
build-html:
- test -d HTML || mkdir HTML
+ test -d $(HTML_TOP) || mkdir $(HTML_TOP)
for d in $(SUBDIRS); do\
test -f $$d/Makefile &&\
- (test -d HTML/$$d || mkdir HTML/$$d) &&\
- if $(MAKE) HTMLDIR=../../HTML/$$d -C $$d; then :; else exit 1; fi;\
+ (test -d $(HTML_TOP)/$$d || mkdir $(HTML_TOP)/$$d) &&\
+ if $(MAKE) HTMLDIR=../$(HTML_TOP)/$$d -C $$d; then :; else exit 1; fi;\
done
.PHONY: test
@@ -69,7 +72,7 @@ test:
.PHONY: clean-html
clean-html:
- -rm -rf ../HTML
+ -rm -rf $(HTML_TOP)
.PHONY: distclean
distclean: clean-html