Use automake --foreign so we don't need to have INSTALL and NEWS present.
[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 if BUILD_MANUAL
26
27 .fig.pdf:
28         fig2dev -L pdf $< $@
29
30 .tex.pdf:
31         pdflatex -interaction=nonstopmode $< >/dev/null
32         pdflatex -interaction=nonstopmode $< >/dev/null
33         pdflatex -interaction=nonstopmode $< >/dev/null
34
35 version.tex: Makefile
36         echo '|def|version{$(PACKAGE_VERSION)}' | tr '|' '\\' > version.tex
37         echo '|def|pubdate{$(PUBDATE)}' | tr '|' '\\' >> version.tex
38
39 ragel-guide.pdf: version.tex
40
41 ragel-guide.pdf: bmconcat.pdf bmregex.pdf dropdown.pdf exdoneact.pdf \
42         exoutact1.pdf exstrongsubtr.pdf lines2.pdf smallscanner.pdf bmnull.pdf \
43         comments1.pdf entryguard.pdf exinter.pdf exoutact2.pdf exsubtr.pdf \
44         lmkleene.pdf stembed.pdf bmnum.pdf comments2.pdf exaction.pdf \
45         exnegate.pdf explus.pdf finguard.pdf opconcat.pdf bmor.pdf conds1.pdf \
46         exallact.pdf exoption.pdf exstact.pdf leftguard.pdf opor.pdf \
47         bmrange.pdf conds2.pdf exconcat.pdf exor.pdf exstar.pdf lines1.pdf \
48         opstar.pdf
49
50 endif