GNU bug report logs -
#43683
make install-exec does not trigger make $(BUILT_SOURCES)
Previous Next
Reported by: madmurphy <madmurphy333 <at> gmail.com>
Date: Tue, 29 Sep 2020 00:10:02 UTC
Severity: normal
Done: Karl Berry <karl <at> freefriends.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your message dated Tue, 6 Oct 2020 19:18:55 -0600
with message-id <202010070118.0971ItIE025146 <at> freefriends.org>
and subject line Re: bug#43683: make install-exec does not trigger make $(BUILT_SOURCES)
has caused the debbugs.gnu.org bug report #43683,
regarding make install-exec does not trigger make $(BUILT_SOURCES)
to be marked as done.
(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)
--
43683: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=43683
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
[Message part 3 (text/plain, inline)]
I have a project that relies on automatically-built sources, therefore I
have created a BUILT_SOURCES variable in my src/Makefile.am file (see GNU
Automake ยง 9.4 Built Sources
<https://www.gnu.org/software/automake/manual/html_node/Built-Sources-Example.html>).
Everything works perfectly, however I have noticed that if I launch make
install before launching make all the sources are correctly built, but the
same does not happen if I launch make install-exec before launching make all.
So I have examined the generated src/Makefile, and I have found the reason.
Currently src/Makefile.am generates the following code in src/Makefile:
install: $(BUILT_SOURCES)
$(MAKE) $(AM_MAKEFLAGS) install-am
install-exec: install-exec-am
Evidently install and install-exec are treated differently, and the second
one does not build any source. I believe that the correct generated code
for src/Makefile should be instead:
install: $(BUILT_SOURCES)
$(MAKE) $(AM_MAKEFLAGS) install-am
install-exec: $(BUILT_SOURCES)
$(MAKE) $(AM_MAKEFLAGS) install-exec-am
Cheers and thanks, GNU folks, for your incredible work.
--madmurphy
[Message part 4 (text/html, inline)]
[Message part 5 (message/rfc822, inline)]
Hi madmurphy,
install-exec: $(BUILT_SOURCES)
$(MAKE) $(AM_MAKEFLAGS) install-exec-am
Thanks very much for the bug report, patch, and test case. I just
applied and pushed it, with small modifications. Please report back if
problems persist. Meanwhile, closing this bug. Thanks again! --karl
This bug report was last modified 4 years and 223 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.