![russell](/assets/img/avatar_default.png)
* Add a Makefile in doc/tex/ for generating PDF and HTML * Add a README.txt file to doc/tex/ to document which tools are used and what web sites to visit for getting them. * Update build_tools/prep_tarball to put the proper Asterisk version string in the automatically generated PDF for release tarballs git-svn-id: http://svn.digium.com/svn/asterisk/trunk@72982 f38db490-d61c-443f-a65b-d21fe96a405b
36 lines
1.3 KiB
Makefile
36 lines
1.3 KiB
Makefile
include ../../makeopts
|
|
|
|
pdf: asterisk.pdf
|
|
|
|
asterisk.pdf: $(wildcard *.tex)
|
|
ifeq ($(findstring rubber,$(RUBBER)),)
|
|
@echo "**********************************************"
|
|
@echo "** You must install the \"rubber\" tool ***"
|
|
@echo "** to generate the Asterisk reference PDF. ***"
|
|
@echo "**********************************************"
|
|
else
|
|
@echo "**********************************************"
|
|
@echo "** The Asterisk reference PDF will now be ***"
|
|
@echo "** generated. When complete, it will be ***"
|
|
@echo "** located at asterisk.pdf. ***"
|
|
@echo "**********************************************"
|
|
@cp asterisk.tex asterisk.tex.orig
|
|
@sed -i -e 's/ASTERISKVERSION/$(ASTERISKVERSION)/' asterisk.tex
|
|
@$(RUBBER) --pdf asterisk.tex
|
|
@mv asterisk.tex.orig asterisk.tex
|
|
endif
|
|
|
|
html:
|
|
@echo "**********************************************"
|
|
@echo "** The Asterisk reference HTML will now be ***"
|
|
@echo "** generated. When complete, it will be ***"
|
|
@echo "** located in the asterisk/ directory. ***"
|
|
@echo "** Note that the latex2html tool is ***"
|
|
@echo "** required for this to work. ***"
|
|
@echo "**********************************************"
|
|
@cp asterisk.tex asterisk.tex.orig
|
|
@sed -i -e 's/ASTERISKVERSION/$(ASTERISKVERSION)/' asterisk.tex
|
|
@latex2html asterisk.tex
|
|
@mv asterisk.tex.orig asterisk.tex
|
|
|