diff options
author | Russell Bryant <russell@russellbryant.com> | 2007-07-02 22:27:46 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2007-07-02 22:27:46 +0000 |
commit | df1a340774efc74f80ab4d99fb01da958d3f18e2 (patch) | |
tree | 4c5b7a9ec6daf345dc48805fe38a7d941866ed93 /doc/tex/Makefile | |
parent | 94b934c8f66b617b05ccf528781b958e4c312d04 (diff) |
* Move LaTeX docs into a tex/ subdirectory of the doc/ dir
* 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: https://origsvn.digium.com/svn/asterisk/trunk@72982 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'doc/tex/Makefile')
-rw-r--r-- | doc/tex/Makefile | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/doc/tex/Makefile b/doc/tex/Makefile new file mode 100644 index 000000000..2ccf892d3 --- /dev/null +++ b/doc/tex/Makefile @@ -0,0 +1,35 @@ +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 + |