4 local-WWW: $(addprefix $(outdir)/,$(TEXI_FILES:.texi=.html))
6 local-doc: $(OUTTXT_FILES)
8 .PHONY : texinfo-all-menus-update
10 TEXINFO_ALL_MENUS_UPDATE_EL ='\
12 (version-control nil))\
13 (load-library "texinfo")\
15 (texinfo-all-menus-update)\
16 (if (buffer-modified-p (current-buffer))\
20 check-info: texinfo-all-menus-update
22 # buffer-modified-p is ALWAYS true, even if there were no actual
23 # changes, so we try setting origal (timestamp) back if there
26 # ugh: emacs20.7 batch mode is not really batch:
28 # answer `echo q' to the question:
29 # FILE locked by EMAIL (pid PID): (s, q, p, ?)?
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