@$(MKDIR_P) doc
@PERL@ $(top_srcdir)/doc/get-commands.pl $(top_srcdir)/src/language/command.def > $@
+doc/pspp.xml: doc/pspp.texinfo $(doc_pspp_TEXINFOS)
+ @$(MKDIR_P) doc
+ $(MAKEINFO) --docbook -I $(top_srcdir) $< -o $@
+ $(SED) -i -e 's/Time-&-Date/Time-\&-Date/g' \
+ -e 's%below:<table label=""></para>%below:</para><table label="">%' $@
-install-info-file:
- for ifile in $(DESTDIR)$(infodir)/pspp.info-[0-9] $(DESTDIR)$(infodir)/pspp.info ; do \
- gzip -f $$ifile ; \
- done
-
-INSTALL_DATA_HOOKS += install-info-file
-
-uninstall-info-file:
- $(RM) $(DESTDIR)$(infodir)/pspp.info-[0-9].gz ; \
- $(RM) $(DESTDIR)$(infodir)/pspp.info.gz ;
+docbookdir = $(docdir)
+docbook_DATA = doc/pspp.xml
-UNINSTALL_DATA_HOOKS += uninstall-info-file
EXTRA_DIST += doc/OChangeLog
-CLEANFILES += pspp-dev.dvi
+CLEANFILES += pspp-dev.dvi $(docbook_DATA)
bin_PROGRAMS += src/ui/gui/psppire
src_ui_gui_psppire_CFLAGS = $(GTK_CFLAGS) -Wall \
- -DINSTALLDIR=\"$(bindir)\" -DGDK_MULTIHEAD_SAFE=1
+ -DINSTALLDIR=\"$(bindir)\" \
+ -DDOCDIR=\"$(docdir)\" \
+ -DGDK_MULTIHEAD_SAFE=1
src_ui_gui_psppire_LDFLAGS = \
reference_manual (GtkMenuItem *menu, gpointer data)
{
GError *err = NULL;
- if ( ! g_spawn_command_line_async ("yelp info:pspp", &err) )
+ gchar *cmd = g_strdup_printf ("yelp file://%s", relocate (DOCDIR "/pspp.xml"));
+
+ if ( ! g_spawn_command_line_async (cmd, &err) )
{
msg (ME, _("Cannot open reference manual: %s"), err->message);
}
+
+ g_free (cmd);
g_clear_error (&err);
}