[gnomemm-website] Slight Makefile.am cleanup



commit 432ec2b137c71b16e56dd86de347ade319b2bb5c
Author: Murray Cumming <murrayc murrayc com>
Date:   Fri Nov 26 13:00:55 2010 +0100

    Slight Makefile.am cleanup
    
    * docs/Makefile.am: Make it easier to copy/paste a new target for a new
    translation, though this should really be automatic.

 ChangeLog        |    7 +++++++
 docs/Makefile.am |   12 +++++++-----
 2 files changed, 14 insertions(+), 5 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 7eef643..c9f73e6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2010-11-26  Murray Cumming  <murrayc murrayc com>
 
+	Slight Makefile.am cleanup
+
+	* docs/Makefile.am: Make it easier to copy/paste a new target for a new 
+	translation, though this should really be automatic.
+
+2010-11-26  Murray Cumming  <murrayc murrayc com>
+
 	Split the XMl into separate files.
 	
 	Having one .xml file corresponding to each generated web page, with the 
diff --git a/docs/Makefile.am b/docs/Makefile.am
index 6f14121..2ec08e1 100644
--- a/docs/Makefile.am
+++ b/docs/Makefile.am
@@ -66,14 +66,16 @@ $(DOC_LINGUAS):
 # Create a html generation of the C locale's version of the DocBook,
 # using our custom stylesheet and graphics:
 html/en/index.html: $(addprefix $(srcdir)/C/,$(doc_module_with_ext) $(DOC_INCLUDES))
-	$(AM_V_at)rm -fr html/en
-	$(AM_V_at)$(MKDIR_P) html/en
+  thelocale=en
+	$(AM_V_at)rm -fr html/$(thelocale)
+	$(AM_V_at)$(MKDIR_P) html/$(thelocale)
 	$(AM_V_GEN)$(XSLTPROC) -o html/en/ --xinclude param.xsl $(srcdir)/C/$(doc_module_with_ext)
 
 html/zh_CN/index.html: $(addprefix $(srcdir)/zh_CN/,$(doc_module_with_ext) $(DOC_INCLUDES))
-	$(AM_V_at)rm -fr html/zh_CN
-	$(AM_V_at)$(MKDIR_P) html/zh_CN
-	$(AM_V_GEN)$(XSLTPROC) -o html/zh_CN/ --xinclude param.xsl $(srcdir)/zh_CN/$(doc_module_with_ext)
+  thelocale=zh_CN
+	$(AM_V_at)rm -fr html/$(thelocale)
+	$(AM_V_at)$(MKDIR_P) html/$(thelocale)
+	$(AM_V_GEN)$(XSLTPROC) -o html/$(thelocale)/ --xinclude param.xsl $(srcdir)/$(thelocale)/$(doc_module_with_ext)
 
 validate: $(addprefix $(srcdir)/C/,$(doc_module_with_ext) $(DOC_INCLUDES))
 	$(XMLLINT) --xinclude --postvalid --noout $<



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