[Mplayer-cvslog] CVS: main/DOCS/xml Makefile,1.5,1.6 Makefile.inc,1.4,1.5

Diego Biurrun CVS diego at mplayerhq.hu
Wed Oct 8 04:01:27 CEST 2003


Update of /cvsroot/mplayer/main/DOCS/xml
In directory mail:/var/tmp.root/cvs-serv19145

Modified Files:
	Makefile Makefile.inc 
Log Message:
Support for building incomplete translations.
Patch by Dmitry Baryshkov <mitya at school.ioffe.ru>.


Index: Makefile
===================================================================
RCS file: /cvsroot/mplayer/main/DOCS/xml/Makefile,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- Makefile	18 Jun 2003 17:37:36 -0000	1.5
+++ Makefile	8 Oct 2003 02:00:15 -0000	1.6
@@ -1,7 +1,7 @@
 # Makefile for generating the HTML documentation
 
 # List of subdirectories to be processed.
-SUBDIRS = en fr
+SUBDIRS = en fr es ru
 
 # Generated HTML files go here.
 HTML_TOP = ../HTML
@@ -22,10 +22,10 @@
 .PHONY: build-html
 build-html: xsltproc.sh
 	test -d $(HTML_TOP) || mkdir $(HTML_TOP)
-	for d in $(SUBDIRS); do\
-		test -f $$d/Makefile &&\
-		(test -d $(HTML_TOP)/$$d || mkdir $(HTML_TOP)/$$d) &&\
-		if $(MAKE) HTMLDIR=../$(HTML_TOP)/$$d -C $$d; then :; else exit 1; fi;\
+	for dir in $(SUBDIRS); do\
+		test -f $$dir/Makefile &&\
+		(test -d $(HTML_TOP)/$$dir || mkdir $(HTML_TOP)/$$dir) &&\
+		if $(MAKE) HTMLDIR=../$(HTML_TOP)/$$dir -C $$dir; then :; else exit 1; fi;
 	done
 
 .PHONY: clean-html
@@ -34,6 +34,10 @@
 
 .PHONY: distclean
 distclean: clean-html
+	for dir in $(SUBDIRS); do\
+		test -f $$dir/Makefile &&\
+		if $(MAKE) HTMLDIR=../$(HTML_TOP)/$$dir -C $$dir distclean ; then :; else exit 1; fi;
+	done
 	-rm -f html.xsl xsltproc.sh xmllint.sh
 
 xsltproc.sh: configure

Index: Makefile.inc
===================================================================
RCS file: /cvsroot/mplayer/main/DOCS/xml/Makefile.inc,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- Makefile.inc	21 Sep 2003 13:10:58 -0000	1.4
+++ Makefile.inc	8 Oct 2003 02:00:15 -0000	1.5
@@ -17,6 +17,7 @@
 # This is the main target...
 $(HTMLDIR)/index.html: documentation.xml $(XSL_DEPS)
 	@if test "$(HTMLDIR)" = "" ; then echo "Error: HTMLDIR not set!!!"; echo "Typically this means, that you've run make from subdir of DOCS/xml. Don't do this!" ; false; fi
+	if test "$(USE_SYMLINKS)" = "yes" ; then for file in ../en/*.xml ; do if ! test -r `basename $$file` ; then ln -s $$file `basename $$file` ; fi ; done ; fi
 	-rm -f $(HTMLDIR)/*
 	../xmllint.sh $<
 	cp $(HTML_STYLESHEET) $(HTMLDIR)/
@@ -24,3 +25,6 @@
 
 ../html.xsl:
 	cd .. && sh configure
+
+distclean:
+	if test "$(USE_SYMLINKS)" = "yes" ; then for file in *.xml ; do if test -L $$file && test "`readlink $$file`" = "../en/$$file" ; then rm $$file ; fi ; done ; fi



More information about the MPlayer-cvslog mailing list