aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-03-15 22:51:29 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-03-15 22:51:29 +0000
commit95bd1cccf01e3c49987bde239a075bf3c088f0f4 (patch)
tree6a53695ac83dedc3d9b1b45dd80450ecfd934b0c /Makefile
parent66242cbfde3c54d7e672d8293d964da780209605 (diff)
Add Asterisk version information to the generated PDF
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@58937 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 609ca06ca..34b7f1a96 100644
--- a/Makefile
+++ b/Makefile
@@ -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)