[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#43683: make install-exec does not trigger make $(BUILT_SOURCES)

From: madmurphy
Subject: bug#43683: make install-exec does not trigger make $(BUILT_SOURCES)
Date: Tue, 29 Sep 2020 01:19:55 +0100

Please find attached a patch that solves the problem.


Il giorno lun 28 set 2020 alle ore 23:34 madmurphy <madmurphy333@gmail.com> ha scritto:

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). 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.


Attachment: patch.tar.xz
Description: application/xz

reply via email to

[Prev in Thread] Current Thread [Next in Thread]