Implement ADD FILES and UPDATE.
[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/combining.texi \
15         doc/flow-control.texi \
16         doc/function-index.texi \
17         doc/installing.texi \
18         doc/introduction.texi \
19         doc/invoking.texi \
20         doc/language.texi \
21         doc/license.texi \
22         doc/ni.texi \
23         doc/not-implemented.texi \
24         doc/statistics.texi \
25         doc/transformation.texi \
26         doc/regression.texi \
27         doc/utilities.texi \
28         doc/variables.texi \
29         doc/fdl.texi 
30
31 doc_pspp_dev_TEXINFOS = doc/version-dev.texi \
32         doc/dev/intro.texi \
33         doc/dev/concepts.texi \
34         doc/dev/syntax.texi \
35         doc/dev/data.texi \
36         doc/dev/output.texi \
37         doc/dev/system-file-format.texi \
38         doc/dev/portable-file-format.texi \
39         doc/dev/q2c.texi
40
41 EXTRA_DIST += doc/pspp.man \
42         doc/get-commands.pl
43
44 doc/ni.texi: $(top_srcdir)/src/language/command.def doc/get-commands.pl
45         @$(MKDIR_P)  doc
46         @PERL@ $(top_srcdir)/doc/get-commands.pl $(top_srcdir)/src/language/command.def > $@
47
48 # It seems that recent versions of yelp, upon which the gui relies to display the reference
49 # manual, are broken.  It only works on compressed info files.  So we must compress them.
50 if WITHGUI
51 YELP_CHECK = yelp-check
52 else
53 YELP_CHECK =
54 endif
55 install-data-hook:: $(YELP_CHECK)
56         for ifile in $(DESTDIR)$(infodir)/pspp.info-[0-9] \
57                 $(DESTDIR)$(infodir)/pspp.info  ; do \
58           gzip -f $$ifile ; \
59         done
60
61 uninstall-hook::
62         rm -f $(DESTDIR)$(infodir)/pspp.info-[0-9].gz
63         rm -f $(DESTDIR)$(infodir)/pspp.info.gz
64
65 EXTRA_DIST += doc/OChangeLog
66 CLEANFILES += pspp-dev.dvi