[gimp-help-2] [make] Fix making HTML packages



commit e19521fab1940a00ab18e83f489119fbe084e478
Author: Ulf-D. Ehlert <ulfehlert svn gnome org>
Date:   Tue Mar 9 18:38:32 2010 +0100

    [make] Fix making HTML packages
    
    * Makefile.GNU: don't require the html stylesheets to be already built
      (add rules to make stylesheets/*.xsl from stylesheets/*.xsl.in).
    * Add packaging targets to the help file ("make help").

 Makefile.GNU |   19 +++++++++++++++++--
 make.help    |    6 ++++++
 2 files changed, 23 insertions(+), 2 deletions(-)
---
diff --git a/Makefile.GNU b/Makefile.GNU
index 6853427..31cd796 100644
--- a/Makefile.GNU
+++ b/Makefile.GNU
@@ -124,8 +124,9 @@ SRC_FILES  = $(shell cd $(srcdir) && $(find_l) src/ $(src_file_predicates)) \
              $(AUTHORS_DOCBOOK_XML)
 endif
 
-# XXX: requires that "plainhtml.xsl" has been renamed to "html.xsl"
-HTML_STYLESHEETS = stylesheets/html*.xsl
+# TODO
+#HTML_STYLESHEETS = stylesheets/html*.xsl
+HTML_STYLESHEETS = stylesheets/plainhtml.xsl stylesheets/htmlalternate.xsl
 
 # This variable is used by "msgmerge";
 # use empty variable to disable the compendium option
@@ -597,6 +598,20 @@ log:
 
 
 ########################################################################
+####            Make XSL styesheets for HTML                        ####
+########################################################################
+
+# TODO
+stylesheets/plainhtml.xsl: stylesheets/plainhtml.xsl.in
+	$(msg) "[XSL] $@"
+	$(cmd) $(SED) -e s,@STYLEBASE@,http://docbook.sourceforge.net/release/xsl/current, $< > $@
+
+stylesheets/htmlalternate.xsl: stylesheets/htmlalternate.xsl.in
+	$(msg) "[XSL] $@"
+	$(cmd) cp $< $@
+
+
+########################################################################
 ####            Make HTML files:  XML --> HTML                      ####
 ########################################################################
 
diff --git a/make.help b/make.help
index f897cfc..9b2b4f0 100644
--- a/make.help
+++ b/make.help
@@ -52,6 +52,12 @@ Checks:
                    for language LANG (and for English images ("C"))
   check-images     Same as "check-images-en"
 
+Packaging:
+  gimp-help-2-html-LANG.tar.gz
+  gimp-help-2-html-LANG.tar.bz2
+  gimp-help-2-html-LANG.zip
+                   Make HTML package for the specified language LANG.
+
 Special (helper) targets for build-system development:
   dot              Create a visualized version of the Makefile dependencies
                    (this may be not up-to-date!)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]