Fix escaping and some of the formattting (closes issue #10285)
[asterisk/asterisk.git] / doc / tex / Makefile
1 include ../../makeopts
2
3 pdf: asterisk.pdf
4
5 asterisk.pdf: $(wildcard *.tex)
6 ifeq ($(findstring rubber,$(RUBBER)),)
7         @echo "**********************************************"
8         @echo "** You must install the \"rubber\" tool      ***"
9         @echo "** to generate the Asterisk reference PDF. ***"
10         @echo "**********************************************"
11 else
12         @echo "**********************************************"
13         @echo "** The Asterisk reference PDF will now be  ***"
14         @echo "** generated.  When complete, it will be   ***"
15         @echo "** located at asterisk.pdf.                ***"  
16         @echo "**********************************************"
17         @cp asterisk.tex asterisk.tex.orig
18         @sed -i -e 's/ASTERISKVERSION/$(ASTERISKVERSION)/' asterisk.tex
19         @$(RUBBER) --pdf asterisk.tex
20         @mv asterisk.tex.orig asterisk.tex
21 endif
22
23 html:
24         @echo "**********************************************"
25         @echo "** The Asterisk reference HTML will now be ***"
26         @echo "** generated.  When complete, it will be   ***"
27         @echo "** located in the asterisk/ directory.     ***"  
28         @echo "** Note that the latex2html tool is        ***"  
29         @echo "** required for this to work.              ***"  
30         @echo "**********************************************"
31         @cp asterisk.tex asterisk.tex.orig
32         @sed -i -e 's/ASTERISKVERSION/$(ASTERISKVERSION)/' asterisk.tex
33         @latex2html asterisk.tex
34         @mv asterisk.tex.orig asterisk.tex
35