Merge branch 'master' into rewrite-sheet
[pspp-builds.git] / 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/configuring.texi \
10         doc/data-io.texi \
11         doc/data-selection.texi \
12         doc/expressions.texi \
13         doc/files.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/regression.texi \
26         doc/utilities.texi \
27         doc/variables.texi \
28         doc/fdl.texi 
29
30 doc_pspp_dev_TEXINFOS = doc/version-dev.texi \
31         doc/dev/intro.texi \
32         doc/dev/concepts.texi \
33         doc/dev/syntax.texi \
34         doc/dev/data.texi \
35         doc/dev/output.texi \
36         doc/dev/system-file-format.texi \
37         doc/dev/portable-file-format.texi \
38         doc/dev/q2c.texi
39
40 EXTRA_DIST += doc/pspp.man \
41         doc/get-commands.pl
42
43 doc/ni.texi: $(top_srcdir)/src/language/command.def doc/get-commands.pl
44         @$(MKDIR_P)  doc
45         @PERL@ $(top_srcdir)/doc/get-commands.pl $(top_srcdir)/src/language/command.def > $@
46
47 # It seems that recent versions of yelp, upon which the gui relies to display the reference
48 # manual, are broken.  It only works on compressed info files.  So we must compress them.
49 if WITHGUI
50 YELP_CHECK = yelp-check
51 else
52 YELP_CHECK =
53 endif
54 install-data-hook:: $(YELP_CHECK)
55         for ifile in $(DESTDIR)$(infodir)/pspp.info-[0-9] \
56                 $(DESTDIR)$(infodir)/pspp.info  ; do \
57           gzip -f $$ifile ; \
58         done
59
60 uninstall-hook::
61         rm -f $(DESTDIR)$(infodir)/pspp.info-[0-9].gz
62         rm -f $(DESTDIR)$(infodir)/pspp.info.gz
63
64 EXTRA_DIST += doc/OChangeLog
65 CLEANFILES += pspp-dev.dvi