diff options
-rw-r--r-- | Makefile | 7 | ||||
-rw-r--r-- | doc/asterisk.tex | 2 |
2 files changed, 6 insertions, 3 deletions
@@ -679,7 +679,7 @@ menuselect-tree: $(foreach dir,$(filter-out main,$(MOD_SUBDIRS)),$(wildcard $(di asterisk.pdf: doc/asterisk.pdf -doc/asterisk.pdf: +doc/asterisk.pdf: $(wildcard doc/*.tex) ifeq ($(findstring rubber,$(RUBBER)),) @echo "**********************************************" @echo "** You must install the \"rubber\" tool ***" @@ -691,7 +691,10 @@ else @echo "** generated. When complete, it will be ***" @echo "** located at doc/asterisk.pdf. ***" @echo "**********************************************" - @cd doc && rubber asterisk.tex + @cp doc/asterisk.tex doc/asterisk.tex.orig + @sed -i -e 's/ASTERISKVERSION/$(ASTERISKVERSION)/' doc/asterisk.tex + @cd doc && $(RUBBER) --pdf asterisk.tex + @mv doc/asterisk.tex.orig doc/asterisk.tex endif .PHONY: menuselect main sounds clean dist-clean distclean all prereqs cleantest uninstall _uninstall uninstall-all dont-optimize $(SUBDIRS_INSTALL) $(SUBDIRS_CLEAN) $(SUBDIRS_UNINSTALL) $(SUBDIRS) $(MOD_SUBDIRS_EMBED_LDSCRIPT) $(MOD_SUBDIRS_EMBED_LDFLAGS) $(MOD_SUBDIRS_EMBED_LIBS) diff --git a/doc/asterisk.tex b/doc/asterisk.tex index 6e370f79f..f9557bf60 100644 --- a/doc/asterisk.tex +++ b/doc/asterisk.tex @@ -7,7 +7,7 @@ \usepackage{hyperref} \author{Asterisk Development Team \\ Asterisk.org} -\title{Asterisk Reference Information} +\title{Asterisk Reference Information \\ Version ASTERISKVERSION} \begin{document} \maketitle |