Patches from Diego Elio 'Flameeyes' Pettenò.
[external/ragel.git] / doc / Makefile.am
1 #
2 #   Copyright 2001-2007 Adrian Thurston <thurston@complang.org>
3 #
4
5 #   This file is part of Ragel.
6 #
7 #   Ragel is free software; you can redistribute it and/or modify
8 #   it under the terms of the GNU General Public License as published by
9 #   the Free Software Foundation; either version 2 of the License, or
10 #   (at your option) any later version.
11 #
12 #   Ragel is distributed in the hope that it will be useful,
13 #   but WITHOUT ANY WARRANTY; without even the implied warranty of
14 #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 #   GNU General Public License for more details.
16 #
17 #   You should have received a copy of the GNU General Public License
18 #   along with Ragel; if not, write to the Free Software
19 #   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA 
20
21 man_MANS = ragel.1 
22
23 dist_doc_DATA = ragel-guide.pdf
24
25 EXTRA_DIST = ragel-guide.tex \
26         bmconcat.fig bmregex.fig dropdown.fig exdoneact.fig \
27         exoutact1.fig exstrongsubtr.fig lines2.fig smallscanner.fig bmnull.fig \
28         comments1.fig entryguard.fig exinter.fig exoutact2.fig exsubtr.fig \
29         lmkleene.fig stembed.fig bmnum.fig comments2.fig exaction.fig \
30         exnegate.fig explus.fig finguard.fig opconcat.fig bmor.fig conds1.fig \
31         exallact.fig exoption.fig exstact.fig leftguard.fig opor.fig \
32         bmrange.fig conds2.fig exconcat.fig exor.fig exstar.fig lines1.fig \
33         opstar.fig
34
35 if BUILD_MANUAL
36
37 .fig.pdf:
38         fig2dev -L pdf $< $@
39
40 .tex.pdf:
41         pdflatex -interaction=nonstopmode $< >/dev/null
42         pdflatex -interaction=nonstopmode $< >/dev/null
43         pdflatex -interaction=nonstopmode $< >/dev/null
44
45 version.tex: Makefile
46         echo '|def|version{$(PACKAGE_VERSION)}' | tr '|' '\\' > version.tex
47         echo '|def|pubdate{$(PUBDATE)}' | tr '|' '\\' >> version.tex
48
49 ragel-guide.pdf: version.tex
50
51 ragel-guide.pdf: bmconcat.pdf bmregex.pdf dropdown.pdf exdoneact.pdf \
52         exoutact1.pdf exstrongsubtr.pdf lines2.pdf smallscanner.pdf bmnull.pdf \
53         comments1.pdf entryguard.pdf exinter.pdf exoutact2.pdf exsubtr.pdf \
54         lmkleene.pdf stembed.pdf bmnum.pdf comments2.pdf exaction.pdf \
55         exnegate.pdf explus.pdf finguard.pdf opconcat.pdf bmor.pdf conds1.pdf \
56         exallact.pdf exoption.pdf exstact.pdf leftguard.pdf opor.pdf \
57         bmrange.pdf conds2.pdf exconcat.pdf exor.pdf exstar.pdf lines1.pdf \
58         opstar.pdf
59
60 endif