1 ## Process this file with automake to produce Makefile.in -*- makefile -*-
3 info_TEXINFOS = doc/pspp.texinfo doc/pspp-dev.texinfo
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 \
22 doc/not-implemented.texi \
24 doc/transformation.texi \
32 doc_pspp_dev_TEXINFOS = doc/version-dev.texi \
34 doc/dev/concepts.texi \
39 doc/dev/system-file-format.texi \
40 doc/dev/portable-file-format.texi \
43 EXTRA_DIST += doc/pspp.man \
46 $(srcdir)/doc/ni.texi: $(top_srcdir)/src/language/command.def doc/get-commands.pl
48 $(PERL) $(top_srcdir)/doc/get-commands.pl $(top_srcdir)/src/language/command.def > $@
50 $(srcdir)/doc/tut.texi:
52 echo "@set example-dir $(examplesdir)" > $@
55 # The SED and AWK filters in this rule, are to work-around some nasty bugs in makeinfo version 4.13, which produces
56 # broken docbook xml. These workarounds are rather horrible and must be removed asap.
57 $(srcdir)/doc/pspp.xml: doc/pspp.texinfo $(doc_pspp_TEXINFOS)
59 $(MAKEINFO) $(AM_MAKEINFOFLAGS) --docbook -I $(top_srcdir) \
60 $(top_srcdir)/doc/pspp.texinfo -o - \
61 | $(SED) -e 's/Time-&-Date/Time-\&-Date/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 -e 's/−/\−/g' \
71 -e 's/…/\…/g' \
72 -e 's/•/\ߦ/g' \
74 -e 's%\(<figure [^>]*\)>%\1/>%g' \
75 | $(AWK) '/<para>.*<table.*>.*<\/para>/{x=sub("</para>",""); print; s=1;next}/<\/table>/{print; if (s==1) print "</para>"; s=0; next}1' \
77 $(XMLLINT) --output /dev/null $@ || ( $(RM) $@ ; false)
79 docbookdir = $(docdir)
80 dist_docbook_DATA = doc/pspp.xml
83 EXTRA_DIST += doc/OChangeLog
84 CLEANFILES += pspp-dev.dvi $(docbook_DATA)
86 doc: $(INFO_DEPS) $(DVIS) $(PDFS) $(PSS) $(HTMLS) $(dist_docbook_DATA)