1 ## Process this file with automake to produce Makefile.in -*- makefile -*-
3 info_TEXINFOS = doc/pspp.texi doc/pspp-dev.texi
5 doc_pspp_TEXINFOS = doc/version.texi \
7 doc/command-index.texi \
8 doc/concept-index.texi \
10 doc/data-selection.texi \
11 doc/expressions.texi \
14 doc/flow-control.texi \
15 doc/function-index.texi \
17 doc/introduction.texi \
21 doc/pspp-convert.texi \
23 doc/not-implemented.texi \
25 doc/transformation.texi \
33 doc_pspp_dev_TEXINFOS = doc/version-dev.texi \
35 doc/dev/concepts.texi \
40 doc/dev/system-file-format.texi \
41 doc/dev/pc+-file-format.texi \
42 doc/dev/portable-file-format.texi \
45 dist_man_MANS += doc/pspp.1 \
48 EXTRA_DIST += doc/get-commands.pl
50 $(srcdir)/doc/ni.texi: $(top_srcdir)/src/language/command.def doc/get-commands.pl
52 $(AM_V_GEN)$(PERL) $(top_srcdir)/doc/get-commands.pl $(top_srcdir)/src/language/command.def > $@
54 $(srcdir)/doc/tut.texi:
56 $(AM_V_GEN)echo "@set example-dir $(examplesdir)" > $@
59 # The SED and AWK filters in this rule, are to work-around some nasty bugs in makeinfo version 4.13, which produces
60 # broken docbook xml. These workarounds are rather horrible and must be removed asap.
61 $(srcdir)/doc/pspp.xml: doc/pspp.texi $(doc_pspp_TEXINFOS)
63 $(AM_V_GEN)$(MAKEINFO) $(AM_MAKEINFOFLAGS) --docbook -I $(top_srcdir) \
64 $(top_srcdir)/doc/pspp.texi -o - \
65 | $(SED) -e 's/Time-&-Date/Time-\&-Date/g' \
66 -e 's/“/\“/g' \
67 -e 's/”/\”/g' \
68 -e 's/‘/\‘/g' \
69 -e 's/’/\’/g' \
70 -e 's/—/\—/g' \
71 -e 's/–/\′/g' \
72 -e 's/é/\é/g' \
73 -e 's/©/\©/g' \
74 -e 's/−/\−/g' \
75 -e 's/…/\…/g' \
76 -e 's/•/\ߦ/g' \
78 -e 's%\(<figure [^>]*\)>%\1/>%g' \
79 | $(AWK) '/<para>.*<table.*>.*<\/para>/{x=sub("</para>",""); print; s=1;next}/<\/table>/{print; if (s==1) print "</para>"; s=0; next}1' \
81 $(AM_V_at)$(XMLLINT) --output /dev/null $@ || ( $(RM) $@ ; false)
83 docbookdir = $(docdir)
84 dist_docbook_DATA = doc/pspp.xml
87 CLEANFILES += pspp-dev.dvi $(docbook_DATA)
89 doc: $(INFO_DEPS) $(DVIS) $(PDFS) $(PSS) $(HTMLS) $(dist_docbook_DATA)