|
From: | madmurphy |
Subject: | bug#43683: make install-exec does not trigger make $(BUILT_SOURCES) |
Date: | Tue, 29 Sep 2020 01:19:55 +0100 |
I have a project that relies on automatically-built sources, therefore I have created a
BUILT_SOURCES
variable in mysrc/Makefile.am
file (see GNU Automake § 9.4 Built Sources). Everything works perfectly, however I have noticed that if I launchmake install
before launchingmake all
the sources are correctly built, but the same does not happen if I launchmake install-exec
before launchingmake all
. So I have examined the generatedsrc/Makefile
, and I have found the reason.
Currentlysrc/Makefile.am
generates the following code insrc/Makefile
:install: $(BUILT_SOURCES)
$(MAKE) $(AM_MAKEFLAGS) install-am
install-exec: install-exec-amEvidently
install
andinstall-exec
are treated differently, and the second one does not build any source. I believe that the correct generated code forsrc/Makefile
should be instead:install: $(BUILT_SOURCES)
$(MAKE) $(AM_MAKEFLAGS) install-am
install-exec: $(BUILT_SOURCES)
$(MAKE) $(AM_MAKEFLAGS) install-exec-amCheers and thanks, GNU folks, for your incredible work.
--madmurphy
patch.tar.xz
Description: application/xz
[Prev in Thread] | Current Thread | [Next in Thread] |