doc: Make figure references relative to doc/, not to doc/pspp-figures. dev
authorBen Pfaff <blp@cs.stanford.edu>
Sat, 28 Nov 2020 02:56:35 +0000 (18:56 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Sat, 28 Nov 2020 02:56:35 +0000 (18:56 -0800)
This frame of reference is what the viewers for the generated XML and Info
files expect (from testing).  It also seems to be what the Makefile expects
since this allows us to eliminate a couple of include directory options.

doc/automake.mk
doc/pspp.texi

index 4e23a1c4bea44032a519ad6673e2f829bd5ccc7e..afa84df980d2a676ee7adb796908cdad6cf822b5 100644 (file)
@@ -81,8 +81,8 @@ doc/pspp.xml: doc/pspp.texi $(doc_pspp_TEXINFOS) doc/help-pages-list
 if BROKEN_DOCBOOK_XML
        touch $@
 else
-       $(AM_V_GEN)$(MAKEINFO) $(AM_MAKEINFOFLAGS) --docbook -I $(top_srcdir) \
-               $< -o $@
+       $(AM_V_GEN)$(MAKEINFO) --docbook $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) \
+               -I doc -I $(srcdir)/doc $< -o $@
 endif
 
 docbookdir = $(docdir)
@@ -107,9 +107,6 @@ EXTRA_DIST += \
        doc/pspp-manual.css
 
 
-AM_MAKEINFOFLAGS=-I $(top_srcdir)/doc/pspp-figures -I $(top_builddir)/doc/pspp-figures
-am__TEXINFO_TEX_DIR=:$(top_srcdir)/doc/pspp-figures:$(top_builddir)/doc/pspp-figures
-
 ################# Example programs ##############################
 
 FIGURE_SYNTAX = \
index 69146976918fb69789ea732ce0ceaa2e2ed98a1e..1af4275be012422427f17dfa4a65b980c8a8d563 100644 (file)
@@ -36,7 +36,7 @@ graphic user interface
 @macro psppoutput{FILE}
 @ifnothtml
 @smallexample
-@include \FILE\.texi
+@include pspp-figures/\FILE\.texi
 @end smallexample
 @end ifnothtml
 @ifhtml
@@ -44,7 +44,7 @@ graphic user interface
 @html
 
 <div class="pspp">
-@include \FILE\.html
+@include pspp-figures/\FILE\.html
 </div>
 
 @end html