variable-parser: Rewrite parse_DATA_LIST_vars().
[pspp] / doc / automake.mk
1 ## Process this file with automake to produce Makefile.in  -*- makefile -*-
2
3 info_TEXINFOS = doc/pspp.texinfo doc/pspp-dev.texinfo
4
5 doc_pspp_TEXINFOS = doc/version.texi \
6         doc/bugs.texi \
7         doc/command-index.texi \
8         doc/concept-index.texi \
9         doc/data-io.texi \
10         doc/data-selection.texi \
11         doc/expressions.texi \
12         doc/files.texi \
13         doc/combining.texi \
14         doc/flow-control.texi \
15         doc/function-index.texi \
16         doc/installing.texi \
17         doc/introduction.texi \
18         doc/invoking.texi \
19         doc/language.texi \
20         doc/license.texi \
21         doc/ni.texi \
22         doc/not-implemented.texi \
23         doc/statistics.texi \
24         doc/transformation.texi \
25         doc/tutorial.texi \
26         doc/tut.texi \
27         doc/regression.texi \
28         doc/utilities.texi \
29         doc/variables.texi \
30         doc/fdl.texi 
31
32 doc_pspp_dev_TEXINFOS = doc/version-dev.texi \
33         doc/dev/intro.texi \
34         doc/dev/concepts.texi \
35         doc/dev/syntax.texi \
36         doc/dev/data.texi \
37         doc/dev/i18n.texi \
38         doc/dev/output.texi \
39         doc/dev/system-file-format.texi \
40         doc/dev/portable-file-format.texi \
41         doc/dev/q2c.texi
42
43 EXTRA_DIST += doc/pspp.man \
44         doc/get-commands.pl
45
46 $(srcdir)/doc/ni.texi: $(top_srcdir)/src/language/command.def doc/get-commands.pl
47         @$(MKDIR_P)  doc
48         $(PERL) $(top_srcdir)/doc/get-commands.pl $(top_srcdir)/src/language/command.def > $@
49
50 $(srcdir)/doc/tut.texi:
51         @$(MKDIR_P) doc
52         echo "@set example-dir $(examplesdir)" > $@
53
54
55 $(srcdir)/doc/pspp.xml: doc/pspp.texinfo $(doc_pspp_TEXINFOS)
56         @$(MKDIR_P)  doc
57         $(MAKEINFO) $(AM_MAKEINFOFLAGS) --docbook -I $(top_srcdir) \
58                 $(top_srcdir)/doc/pspp.texinfo -o - \
59                 | $(SED) -e 's/Time-&-Date/Time-\&-Date/g' \
60                 -e 's/“/\“/g' \
61                 -e 's/”/\”/g' \
62                 -e 's/‘/\‘/g' \
63                 -e 's/’/\’/g' \
64                 -e 's/—/\—/g' \
65                 -e 's/–/\′/g' \
66                 -e 's/©/\©/g' \
67                 -e 's/−/\−/g' \
68                 -e 's/…/\…/g' \
69                 -e 's/././g' \
70                 > $@
71         $(XMLLINT) --output /dev/null $@ 2>&1 2> /dev/null || ( $(RM) $@ && false )
72
73 docbookdir = $(docdir)
74 dist_docbook_DATA = doc/pspp.xml
75
76 EXTRA_DIST += doc/OChangeLog
77 CLEANFILES += pspp-dev.dvi $(docbook_DATA)