]> git.donarmstrong.com Git - lilypond.git/blob - stepmake/stepmake/texinfo-targets.make
patch::: 1.3.139.jcn1
[lilypond.git] / stepmake / stepmake / texinfo-targets.make
1
2 default: $(INFO_FILES)
3
4 local-WWW: $(addprefix $(outdir)/,$(TEXI_FILES:.texi=.html))
5
6 local-doc: $(OUTTXT_FILES)
7
8 .PHONY : texinfo-all-menus-update
9
10 TEXINFO_ALL_MENUS_UPDATE_EL ='\
11   (let ((error nil)\
12         (version-control nil))\
13       (load-library "texinfo")\
14       (texinfo-mode)\
15       (texinfo-all-menus-update)\
16       (if (buffer-modified-p (current-buffer))\
17         (save-buffer))))\
18 '
19
20 check-info: texinfo-all-menus-update
21
22 # buffer-modified-p is ALWAYS true, even if there were no actual
23 # changes, so we try setting origal (timestamp) back if there
24 # were no changes.
25 #
26 # ugh: emacs20.7 batch mode is not really batch:
27 #
28 # answer `echo q' to the question:
29 # FILE locked by EMAIL (pid PID): (s, q, p, ?)?
30 #
31 texinfo-all-menus-update:
32         -$(foreach i, $(TEXINFO_SOURCES), echo q | emacs --batch --no-site-file $(i) --eval $(TEXINFO_ALL_MENUS_UPDATE_EL); )
33         $(foreach i, $(sort $(TEXINFO_SOURCES)), if diff -u $(i)~ $(i); then mv $(i)~ $(i);  fi && ) true