On Mon, 2026-04-27 at 16:40 +0000, Heime wrote: > On Tuesday, April 28th, 2026 at 4:33 AM, Eli Zaretskii <[email protected]> > wrote: > > > Date: Mon, 27 Apr 2026 15:43:19 +0000 > > > From: Heime <[email protected]> > > > > > > Have looked at the emacs documentation Makefile.in but do not > > > need to use Autoconf. My target directory is trgdir and the > > > sources are in srcs. How can I change the following. What is > > > AM_V_GEN? If I need to use it, to what should it be assigned? > > > > > > (trgdir)/emacs.info: ${srcs} | ${trgdir} > > > $(AM_V_GEN)$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ $< > > > > You can drop AM_V_GEN entirely.
AM_V_GEN is a debugging facility; by default it's set to '@' which will cause make to not print the command line, but you can override it by running make with something like 'V=1' which will cause AM_V_GEN to be the empty string, and the command will be printed. It is (as can be inferred from the AM_ prefix) provided as part of automake. > There is also $(ENVADD) used in the dvi and pdf cases. Would one > drop $(ENVADD) as well? You can use 'make -pn' to show the value of all variables in the make database. ENVADD is not part of makeinfo, it's part of the Emacs build environment. It's not really clear to me what you're trying to accomplish, but if you're trying to use makeinfo in your own project which is not related to Emacs, I _strongly_ recommend you do _not_ use Emacs as you reference for learning how to do that. Emacs is a large, complex piece of software with an equally complex build environment. Unless you have some relationship to Emacs and need to use a build system that is similarly complex, it's a bad project to model yours on (IMO).
