summaryrefslogtreecommitdiffstats
path: root/DOCS/xml
diff options
context:
space:
mode:
authorwight <wight@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-08-08 18:23:04 +0000
committerwight <wight@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-08-08 18:23:04 +0000
commita725639c9354c30db3f608c17eb54e1e77359815 (patch)
treef7b8c49dbe8ce0176ad2a3edd164fd123d19133f /DOCS/xml
parent0ec2337e13f096926819e1908108a13b3335eab7 (diff)
downloadmpv-a725639c9354c30db3f608c17eb54e1e77359815.tar.bz2
mpv-a725639c9354c30db3f608c17eb54e1e77359815.tar.xz
Make symlinks behavior more sensible - regenerate symlinks (and documentation)
only when it is needed. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12970 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'DOCS/xml')
-rw-r--r--DOCS/xml/Makefile.inc10
1 files changed, 6 insertions, 4 deletions
diff --git a/DOCS/xml/Makefile.inc b/DOCS/xml/Makefile.inc
index 0cc7a937b3..dd8530e3ab 100644
--- a/DOCS/xml/Makefile.inc
+++ b/DOCS/xml/Makefile.inc
@@ -35,7 +35,9 @@ all: html-chunked html-single
html-chunked: $(HTMLDIR)/index.html
html-single: $(HTMLFILE)
-$(HTMLDIR)/index.html: main.xml $(CHUNK_XSL_DEPS) $(if $(findstring yes,$(USE_SYMLINKS)),symlinks)
+SYMLINKS_DEPS:=$(if $(findstring yes,$(USE_SYMLINKS)), $(patsubst ../en/%,%,$(wildcard ../en/*.xml)))
+
+$(HTMLDIR)/index.html: main.xml $(CHUNK_XSL_DEPS) $(SYMLINKS_DEPS)
ifndef HTMLDIR
$(warning $(HTMLDIR))
$(warning Error: HTMLDIR not set!!!)
@@ -47,7 +49,7 @@ endif
cp -f $(HTML_STYLESHEET) $(HTMLDIR)/
../xsltproc.sh $(HTMLDIR)/ $(HTML_CHUNK_XSL) $<
-$(HTMLFILE): main.xml $(XSL_DEPS) $(if $(findstring yes,$(USE_SYMLINKS)),symlinks)
+$(HTMLFILE): main.xml $(XSL_DEPS) $(SYMLINKS_DEPS)
ifndef HTMLFILE
$(warning Error: HTMLFILE not set!!!)
$(warning Typically this means, that you've run make from a subdir of DOCS/xml.)
@@ -61,8 +63,8 @@ endif
../html-chunk.xsl ../html-single.xsl main.xml:
cd .. && sh configure
-.PHONY: symlinks
-symlinks:
+$(filter-out main.xml, $(patsubst ../en/%,%, $(wildcard ../en/*.xml))):
+ $(if $(findstring yes,$(USE_SYMLINKS)), ,exit 0;)\
for file in ../en/*.xml ; do \
if ! test -r `basename $$file` ; then \
ln -s $$file `basename $$file` ; \