From 76fcc641138dc60489cca1ff100d121f8ea2e55f Mon Sep 17 00:00:00 2001 From: fukachan Date: Sat, 26 Dec 2009 13:26:55 +0000 Subject: replace version in include/bookinfo.sgml always using fml/utils/bin/version_replace.pl utility. catch up the change in clean and export rules. --- fml/doc/ja/Makefile.template | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'fml/doc') diff --git a/fml/doc/ja/Makefile.template b/fml/doc/ja/Makefile.template index 77bc8dee..20e5e349 100644 --- a/fml/doc/ja/Makefile.template +++ b/fml/doc/ja/Makefile.template @@ -1,5 +1,5 @@ # -# $FML: Makefile.template,v 1.8 2005/06/26 00:05:30 fukachan Exp $ +# $FML: Makefile.template,v 1.9 2005/11/19 03:40:41 fukachan Exp $ # TMP_DIR = ./tmp @@ -11,6 +11,11 @@ BOOK_ID = tips TARGET_HTML_DIR = ../../../../Documentation/ja/$(BOOK) TARGET_TEXT_DIR = ../../../../Documentation/ja/text +# version replacement hack +VERSION_REPLACE = perl ../../../../fml/utils/bin/version_replace.pl +BOOK_INFO = include/bookinfo.sgml +BOOK_INFO_COOKED = include/bookinfo.sgml.cooked + # programs (except for /bin/*) SGML_CC = ../../../../fml/utils/bin/sgml_compile.sh UNIQ = uniq @@ -65,6 +70,7 @@ ps: _init clean: $(FIND) . -type f -print |$(GREP) '~' |$(PERL) -nple unlink rm -f book.txt book.html + rm -f $(BOOK_INFO_COOKED) rm -fr $(SOURCE) export: _init html w3m @@ -82,3 +88,6 @@ _init: test -d $(TMP_DIR) || mkdir $(TMP_DIR) perl ../../../../fml/utils/bin/listup_recipes.pl > tmp/lor.sgml.new mv tmp/lor.sgml.new tmp/lor.sgml + test -f $(BOOK_INFO) && ( \ + $(VERSION_REPLACE) $(BOOK_INFO) > $(BOOK_INFO_COOKED);\ + ) -- cgit v1.2.1