]> granicus.if.org Git - docbook-dsssl/commitdiff
Added reference.txt.gz and reference.pdf.gz files to the release build.
authorMichael Smith <xmldoc@users.sourceforge.net>
Fri, 1 Sep 2006 06:52:55 +0000 (06:52 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Fri, 1 Sep 2006 06:52:55 +0000 (06:52 +0000)
xsl/Makefile
xsl/doc/.cvsignore
xsl/doc/Makefile

index 4aae71a0b986ce3a1bd14e011f01036ce5750f5f..a7a00a95e1575f31cf0af4dff7d95d4b187284ac 100644 (file)
@@ -12,7 +12,7 @@ DISTRIB_DEPENDS = website slides doc install.sh
 # value of ZIP_EXCLUDES is a space-separated list of any file or
 # directory names (shell wildcards OK) that should be excluded
 # from the zip file and tarball for the release
-DISTRIB_EXCLUDES = extensions/xsltproc saxon8 extensions/build/ extensions/build2/
+DISTRIB_EXCLUDES = extensions/xsltproc doc/reference.txt$$ doc/reference.pdf$$
 
 # value of DISTRIB_PACKAGES is a space-separated list of any
 # directory names that should be packaged as separate zip/tar
index 2d19fc766d98a08d9d1437896bfb008a7b15f340..780629c3bbb3794b92e316d65d6828c3fc7cd4cd 100644 (file)
@@ -1 +1,5 @@
 *.html
+reference.pdf.gz
+reference.txt.gz
+reference.pdf
+reference.txt
index 04d73836836a59affaf4f99a0e07e89c0cd2d5c5..8787e6f1c01458cc975c7f996f565a1cd42eb7f5 100644 (file)
@@ -2,6 +2,18 @@ include ../../cvstools/Makefile.incl
 XSLTOPT=
 PROCOPT=
 
+PDF_MAKER=xep
+DOCBOOK_FILE_EXTENSION=.dbk
+REFERENCE_MAKEFILE=../tools/make/Makefile.DocBook
+FO_PARAMS = "--stringparam refentry.pagebreak 0"
+HTML_PARAMS = "--stringparam html.longdesc 0 --param local.l10n.xml \"document('../common/l10n.xsl')\" --stringparam reference.autolabel '1' --stringparam toc.max.depth '1'"
+TXT_MAKER = "LANG=C w3mmee"
+TXT_MAKER_FLAGS = "-dump -config $(W3MMEECONFIG)"
+W3MMEECONFIG = "../../releasetools/w3mmee_config"
+
+GZIP=gzip
+GZIPFLAGS=
+
 .PHONY : clean
 
 RSTYLE=../docsrc/reference.xsl
@@ -9,7 +21,7 @@ VPATH=../docsrc
 
 DIRS=common refentry lib html fo manpages wordml slides website template pi
 
-all: copyright.html warranty.html reference.html index.html
+all: copyright.html warranty.html reference.html index.html reference.pdf.gz reference.txt.gz
        for i in $(DIRS) __bogus__; do \
                if [ $$i != __bogus__ ] ; then \
                        echo "$(MAKE) -C $$i"; $(MAKE) -C $$i; \
@@ -31,10 +43,28 @@ reference.html: reference.xml $(RSTYLE)
 index.html: reference.html
        cp -pR $< $@
 
+reference.pdf: ../docsrc/reference.dbk $(REFERENCE_MAKEFILE)
+       $(MAKE) -f $(REFERENCE_MAKEFILE) ../docsrc/reference.pdf PDF_MAKER=$(PDF_MAKER) DOCBOOK_FILE_EXTENSION=$(DOCBOOK_FILE_EXTENSION) FO_PARAMS=$(FO_PARAMS) \
+         && mv ../docsrc/reference.pdf .
+
+reference.txt: ../docsrc/reference.dbk $(REFERENCE_MAKEFILE)
+       $(MAKE) -f $(REFERENCE_MAKEFILE) ../docsrc/reference.txt TXT_MAKER=$(TXT_MAKER) TXT_MAKER_FLAGS=$(TXT_MAKER_FLAGS) DOCBOOK_FILE_EXTENSION=$(DOCBOOK_FILE_EXTENSION) HTML_PARAMS=$(HTML_PARAMS) \
+         && mv ../docsrc/reference.txt . && $(RM) ../docsrc/reference.html
+
+reference.pdf.gz: reference.pdf
+       cat $< | $(GZIP) $(GZIPFLAGS) > $@
+
+reference.txt.gz: reference.txt
+       cat $< | $(GZIP) $(GZIPFLAGS) > $@
+
 clean:
-       rm -f *.html
+       $(RM) *.html
        for i in $(DIRS) __bogus__; do \
                if [ $$i != __bogus__ ] ; then \
                        echo "$(MAKE) -C $$i clean"; $(MAKE) -C $$i clean; \
                fi \
        done
+       $(RM) reference.pdf
+       $(RM) reference.txt
+       $(RM) reference.pdf.gz
+       $(RM) reference.txt.gz