diff options
Diffstat (limited to 'DOCS')
-rw-r--r-- | DOCS/xml/Makefile | 14 | ||||
-rw-r--r-- | DOCS/xml/Makefile.inc | 4 | ||||
-rw-r--r-- | DOCS/xml/en/Makefile | 3 | ||||
-rw-r--r-- | DOCS/xml/es/Makefile | 3 | ||||
-rw-r--r-- | DOCS/xml/fr/Makefile | 3 | ||||
-rw-r--r-- | DOCS/xml/ru/Makefile | 3 |
6 files changed, 25 insertions, 5 deletions
diff --git a/DOCS/xml/Makefile b/DOCS/xml/Makefile index 98b91270da..23ae3cee31 100644 --- a/DOCS/xml/Makefile +++ b/DOCS/xml/Makefile @@ -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 @@ help: .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 @@ clean-html: .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 diff --git a/DOCS/xml/Makefile.inc b/DOCS/xml/Makefile.inc index 5285b3b8c7..7ec2f36d5b 100644 --- a/DOCS/xml/Makefile.inc +++ b/DOCS/xml/Makefile.inc @@ -17,6 +17,7 @@ HTML_STYLESHEET ?= ../default.css # 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 @@ $(HTMLDIR)/index.html: documentation.xml $(XSL_DEPS) ../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 diff --git a/DOCS/xml/en/Makefile b/DOCS/xml/en/Makefile index 9526a6b068..fb5dee4c44 100644 --- a/DOCS/xml/en/Makefile +++ b/DOCS/xml/en/Makefile @@ -3,5 +3,8 @@ include ../Makefile.inc # Set if you are using your own HTML stylesheet... #HTML_STYLESHEET = mystyle.css +# Change to yes to enable symlinking missing files to English master versions +USE_SYMLINKS = no + # Dependency information. $(HTMLDIR)/index.html: $(wildcard *.xml) diff --git a/DOCS/xml/es/Makefile b/DOCS/xml/es/Makefile index 9526a6b068..573ef6e76a 100644 --- a/DOCS/xml/es/Makefile +++ b/DOCS/xml/es/Makefile @@ -3,5 +3,8 @@ include ../Makefile.inc # Set if you are using your own HTML stylesheet... #HTML_STYLESHEET = mystyle.css +# Change to yes to enable symlinking missing files to English master versions +USE_SYMLINKS = yes + # Dependency information. $(HTMLDIR)/index.html: $(wildcard *.xml) diff --git a/DOCS/xml/fr/Makefile b/DOCS/xml/fr/Makefile index 9526a6b068..fb5dee4c44 100644 --- a/DOCS/xml/fr/Makefile +++ b/DOCS/xml/fr/Makefile @@ -3,5 +3,8 @@ include ../Makefile.inc # Set if you are using your own HTML stylesheet... #HTML_STYLESHEET = mystyle.css +# Change to yes to enable symlinking missing files to English master versions +USE_SYMLINKS = no + # Dependency information. $(HTMLDIR)/index.html: $(wildcard *.xml) diff --git a/DOCS/xml/ru/Makefile b/DOCS/xml/ru/Makefile index 9526a6b068..573ef6e76a 100644 --- a/DOCS/xml/ru/Makefile +++ b/DOCS/xml/ru/Makefile @@ -3,5 +3,8 @@ include ../Makefile.inc # Set if you are using your own HTML stylesheet... #HTML_STYLESHEET = mystyle.css +# Change to yes to enable symlinking missing files to English master versions +USE_SYMLINKS = yes + # Dependency information. $(HTMLDIR)/index.html: $(wildcard *.xml) |