[MPlayer-DOCS] CVS: main/DOCS/xml Makefile.inc,1.16,1.17

Torinthiel CVS syncmail at mplayerhq.hu
Sun Aug 8 20:23:06 CEST 2004


CVS change done by Torinthiel CVS

Update of /cvsroot/mplayer/main/DOCS/xml
In directory mail:/var2/tmp/cvs-serv3175

Modified Files:
	Makefile.inc 
Log Message:
Make symlinks behavior more sensible - regenerate symlinks (and documentation)
only when it is needed.


Index: Makefile.inc
===================================================================
RCS file: /cvsroot/mplayer/main/DOCS/xml/Makefile.inc,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- Makefile.inc	30 Jan 2004 11:40:54 -0000	1.16
+++ Makefile.inc	8 Aug 2004 18:23:04 -0000	1.17
@@ -35,7 +35,9 @@
 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 @@
 	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 @@
 ../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` ; \




More information about the MPlayer-DOCS mailing list