[svnbook commit] r1223 - in trunk/src: en tools
svnbook-dev at red-bean.com
Thu Apr 21 13:38:22 CDT 2005
Date: Thu Apr 21 13:38:21 2005
New Revision: 1223
- copied, changed from r1222, trunk/src/en/Makefile
Migrate the bulk of the locale-independent Makefile out of the locale-specific
"en" directory, and into "tools".
* tools/Makefile.base: Move en/Makefile here, add comment.
(L10N_REVISION): New make variable, to localize word generated by Makefile.
* en/Makefile: Replace with a simple include of Makefile.base.
Copied: trunk/src/tools/Makefile.base (from r1222, trunk/src/en/Makefile)
--- trunk/src/en/Makefile (original)
+++ trunk/src/tools/Makefile.base Thu Apr 21 13:38:21 2005
@@ -1,3 +1,8 @@
+# This is a base Makefile fragment, which is expected to be included by the
+# locale-specific Makefiles located at ../LOCALE_CODE/Makefile . As a result,
+# all relative paths contained within are relative to the LOCALE_CODE
+# directory, and *not* to the tools directory, where this file itself resides.
# Paths which you may wish to customize:
XSLTPROC = xsltproc
XMLLINT = xmllint
@@ -35,6 +40,10 @@
# Uncomment the following line if you'd like to print on A4 paper
# BOOK_FO_XSLTPROC_OPTS = --stringparam paper.type A4
+# Override in locale-specific Makefile to localize the word in the
+# auto-generated version file.
+L10N_REVISION = Revision
# Grouping targets
all-book: book-html book-html-chunk book-pdf book-ps
@@ -53,7 +62,7 @@
@if $(SVNVERSION) . > /dev/null; then \
- echo '<!ENTITY svn.version "Revision '`$(SVNVERSION) .`'">' \
+ echo '<!ENTITY svn.version "$(L10N_REVISION) '`$(SVNVERSION) .`'">' \
> $(BOOK_VERSION_SOURCE).tmp; \
echo '<!ENTITY svn.version "">' > $(BOOK_VERSION_SOURCE).tmp; \
More information about the svnbook-dev