From a86edac26b6648c19cb8e278125978b31f3a093a Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Sun, 4 Apr 2021 17:11:47 -0700 Subject: [PATCH] Regenerate texi-from-org if ox-texinfo.el changes * doc/misc/Makefile.in (top_srcdir): New, set by configure. (emacs): Set load-prefer-newer. (org_template): Make output depend on ox-texinfo.el. --- doc/misc/Makefile.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/misc/Makefile.in b/doc/misc/Makefile.in index 63d4bf0337f..ae960fe769d 100644 --- a/doc/misc/Makefile.in +++ b/doc/misc/Makefile.in @@ -22,7 +22,7 @@ SHELL = @SHELL@ # Where to find the source code. $(srcdir) will be the doc/misc subdirectory # of the source tree. This is set by configure's '--srcdir' option. srcdir=@srcdir@ - +top_srcdir = @top_srcdir@ top_builddir = @top_builddir@ ## Where the output files go. @@ -235,14 +235,14 @@ ${buildinfodir}/tramp.info tramp.html: ${srcdir}/trampver.texi abs_top_builddir = @abs_top_builddir@ EMACS = ${abs_top_builddir}/src/emacs -emacs = "${EMACS}" -batch --no-site-file --no-site-lisp +emacs = "${EMACS}" -batch --no-site-file --no-site-lisp --eval '(setq load-prefer-newer t)' # Generated .texi files go in srcdir so they can be included in the # release tarfile along with the others. # Work in srcdir (and use abs_top_builddir) so that +setupfile and # things like org-setup's "version" macro work. Sigh. define org_template - $(1:.org=.texi): $(1) + $(1:.org=.texi): $(1) ${top_srcdir}/lisp/org/ox-texinfo.el $${AM_V_GEN}cd "$${srcdir}" && $${emacs} -l ox-texinfo \ -f org-texinfo-export-to-texinfo-batch $$(notdir $$<) $$(notdir $$@) endef -- 2.39.5