Debian Codegraph @

debian/patches/texinfo-index-before-pdf.diff

raw symbols SCIP
1 Description: ensure that Makefile builds texinfo index entries before PDF
2 The arm-texi-index.el script rewrites the texinfo source, so it must
3 be executed before any target reading it, not only texi2any --info.
4 .
5 Forwarded by mail on 2022/06/25.
6 Bug-Debian: https://bugs.debian.org/1013600
7 Forwarded: yes
8 Author: Nicolas Boulenguez <[email protected]>
9
10 --- a/build/Makefile
11 +++ b/build/Makefile
12 @@ -90,6 +90,7 @@
13 cd $(SOURCE_DIR_$(y)); \
14 $(CURDIR)/$$< $(MASTER_$(d)) info $(CHANGES) $(VERSION_$(y)) $(VERSION_$(y)) ./; \
15 mv `sed -ne '/^@FilePrefix{\(.*\)}/{s//\L\1/p;q}' $(MASTER_$(d))`.texinfo $(CURDIR)/$$@
16 + $(EMACS_EXE) -Q -batch -L ../progs -l arm-texi-index.el --eval '(progn(do-index "$$@")(kill-emacs))'
17 clean::
18 rm -f $(d)$(y).texinfo
19
20 @@ -112,16 +113,9 @@
21 clean::
22 rm -f -r $(d)$(y).txt
23
24 -# ../progs/arm-texi-index.el adds texinfo index entries.
25 - $(d)$(y).texinfo-index: $(d)$(y).texinfo
26 - $(EMACS_EXE) -Q -batch -L ../progs -l arm-texi-index.el --eval '(progn(do-index "$$<")(kill-emacs))'
27 - touch $$@
28 - clean::
29 - rm -f $(d)$(y).texinfo-index
30 -
31 # texi2any is from texinfo 5
32 - $(d)$(y).info: $(d)$(y).texinfo-index
33 - texi2any --info $(TEXI_INFO_OPTS) $(d)$(y).texinfo -o $$@
34 + $(d)$(y).info: $(d)$(y).texinfo
35 + texi2any --info $(TEXI_INFO_OPTS) $$< -o $$@
36 clean::
37 rm -f $(d)$(y).info
38