X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=doc%2Fautomake.mk;h=fe8abd764f9b370ccec9861e49d7ce9d3e31b666;hb=refs%2Fheads%2Flexer;hp=c25e0cb3cb610b0657223abf2e85467ce3807770;hpb=a1efcf97ca2f75f4be6a0389ff2372c03ed2d4e1;p=pspp diff --git a/doc/automake.mk b/doc/automake.mk index c25e0cb3cb..fe8abd764f 100644 --- a/doc/automake.mk +++ b/doc/automake.mk @@ -6,7 +6,6 @@ doc_pspp_TEXINFOS = doc/version.texi \ doc/bugs.texi \ doc/command-index.texi \ doc/concept-index.texi \ - doc/configuring.texi \ doc/data-io.texi \ doc/data-selection.texi \ doc/expressions.texi \ @@ -23,6 +22,8 @@ doc_pspp_TEXINFOS = doc/version.texi \ doc/not-implemented.texi \ doc/statistics.texi \ doc/transformation.texi \ + doc/tutorial.texi \ + doc/tut.texi \ doc/regression.texi \ doc/utilities.texi \ doc/variables.texi \ @@ -42,26 +43,36 @@ doc_pspp_dev_TEXINFOS = doc/version-dev.texi \ EXTRA_DIST += doc/pspp.man \ doc/get-commands.pl -doc/ni.texi: $(top_srcdir)/src/language/command.def doc/get-commands.pl +$(srcdir)/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 > $@ + $(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. -if WITHGUI -YELP_CHECK = yelp-check -else -YELP_CHECK = -endif -install-data-hook:: $(YELP_CHECK) - for ifile in $(DESTDIR)$(infodir)/pspp.info-[0-9] \ - $(DESTDIR)$(infodir)/pspp.info ; do \ - gzip -f $$ifile ; \ - done +$(srcdir)/doc/tut.texi: + @$(MKDIR_P) doc + echo "@set example-dir $(examplesdir)" > $@ -uninstall-hook:: - rm -f $(DESTDIR)$(infodir)/pspp.info-[0-9].gz - rm -f $(DESTDIR)$(infodir)/pspp.info.gz + +$(srcdir)/doc/pspp.xml: doc/pspp.texinfo $(doc_pspp_TEXINFOS) + @$(MKDIR_P) doc + $(MAKEINFO) $(AM_MAKEINFOFLAGS) --docbook -I $(top_srcdir) \ + $(top_srcdir)/doc/pspp.texinfo -o - \ + | $(SED) -e 's/Time-&-Date/Time-\&-Date/g' \ + -e 's/“/\“/g' \ + -e 's/”/\”/g' \ + -e 's/‘/\‘/g' \ + -e 's/’/\’/g' \ + -e 's/—/\—/g' \ + -e 's/–/\′/g' \ + -e 's/é/\é/g' \ + -e 's/©/\©/g' \ + -e 's/−/\−/g' \ + -e 's/…/\…/g' \ + -e 's/././g' \ + > $@ + $(XMLLINT) --output /dev/null $@ 2>&1 2> /dev/null || ( $(RM) $@ && false ) + +docbookdir = $(docdir) +dist_docbook_DATA = doc/pspp.xml EXTRA_DIST += doc/OChangeLog -CLEANFILES += pspp-dev.dvi +CLEANFILES += pspp-dev.dvi $(docbook_DATA)