Follow-up Comment #1, bug #54233 (project make):
The use case here is the following:
* %.lnk/%.elf: the recipe links an .elf and touches a tag file (.lnk);
* %.dbg/%.elf: the recipe produces a .dbg file, updating (touching) an .elf in
the process; the rule must depend only on %.lnk or it will be triggered
unnecessarily in the next build.
%.elf is mentioned as a target in both rules because it is updated (touched)
by both rules. (.DELETE_ON_ERROR will delete .elf files when either rule
fails, which is correct.)
A workaround is not using .ONESHELL nor single-line recipes; or refrain from
mentioning %.elf as a prerequisite (and instead mentioning %.lnk).
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?54233>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
_______________________________________________
Bug-make mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-make