From: Michael Smith Date: Wed, 23 Aug 2006 10:04:54 +0000 (+0000) Subject: Added variable to example makefile for controlling whether HTML or X-Git-Tag: release/1.79.1~6^2~2613 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=818b6a754446c86bc860304527880a3dd43a9e7b;p=docbook-dsssl Added variable to example makefile for controlling whether HTML or XHTML is generated. --- diff --git a/xsl/tools/make/Makefile.DocBook b/xsl/tools/make/Makefile.DocBook index a08a56ea5..61b0d66c3 100644 --- a/xsl/tools/make/Makefile.DocBook +++ b/xsl/tools/make/Makefile.DocBook @@ -32,6 +32,14 @@ # DOCBOOK_OUTPUT_FORMATS ?= man chunk txt pdf +# If you want XHTML output instead of HTML, set HTML_OR_XHTML to +# 'xhtml' or just specify 'xhtml" in DOCBOOK_OUTPUT_FORMATS. +ifeq ($(findstring xhtml,$(DOCBOOK_OUTPUT_FORMATS)),) +HTML_OR_XHTML ?= html +else +HTML_OR_XHTML ?= xhtml +endif + # ----------------------------------------------------------------- # *** TOOLS and other DEPENDENCIES *** # ----------------------------------------------------------------- @@ -303,10 +311,10 @@ FO_CUSTOM := \ -# for single-file HTML outpout +# for single-file (X)HTML outpout HTML_CUSTOM := \ - \ + \ local.l10n.xml \ \ 1 \ @@ -318,10 +326,10 @@ HTML_CUSTOM := 1 \ -# for chunked HTML output +# for chunked (X)HTML output CHNK_CUSTOM := \ - \ + \ 0 \ 1 \ 0 \ @@ -381,7 +389,7 @@ debug: @echo $(DIRS_MAN) # ----------------------------------------------------------------- -# pattern rule for making HTML and plain-text output +# pattern rule for making (X)HTML and plain-text output # ----------------------------------------------------------------- %.html: %$(DOCBOOK_FILE_EXTENSION) @echo '$(HTML_CUSTOM)' | $(XSLT) $(XSLT_FLAGS) $(HTML_PARAMS) - $< > $@ @@ -399,7 +407,7 @@ ifeq ($(findstring html,$(DOCBOOK_OUTPUT_FORMATS)),) endif # ----------------------------------------------------------------- -# pattern rule for making chunked HTML pages +# pattern rule for making chunked (X)HTML pages # ----------------------------------------------------------------- %.$(HTML_MANIFEST_EXT): %$(DOCBOOK_FILE_EXTENSION) @echo '$(CHNK_CUSTOM)' | $(XSLT) $(XSLT_FLAGS) $(HTML_PARAMS) \