Fix problems with yelp opening info files.
[pspp-builds.git] / doc / automake.mk
index 9c73d344bffbeef2489fd3eb4ea166e3c6fd4ecb..84118c198a3b1b2e118c98acab38ec5a8e923117 100644 (file)
@@ -43,3 +43,15 @@ EXTRA_DIST += doc/pspp.man \
 doc/ni.texi: $(top_srcdir)/src/language/command.def doc/get-commands.pl
        @$(MKDIR_P)  doc
        @PERL@ $(top_srcdir)/doc/get-commands.pl $(top_srcdir)/src/language/command.def > $@
+
+# It seems that recent versions of yelp, upon which the gui relies to display the reference
+# manual, are broken.  It only works on compressed info files.  So we must compress them.
+install-data-hook::
+       for ifile in $(DESTDIR)$(infodir)/pspp.info-[0-9] \
+               $(DESTDIR)$(infodir)/pspp.info  ; do \
+         gzip -f $$ifile ; \
+       done
+
+uninstall-hook::
+       rm -f $(DESTDIR)$(infodir)/pspp.info-[0-9].gz
+       rm -f $(DESTDIR)$(infodir)/pspp.info.gz