Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Silently unsupported GNU Make feature: Rules with Grouped Targets #81

Open
rulatir opened this issue Oct 7, 2020 · 0 comments
Open

Comments

@rulatir
Copy link

rulatir commented Oct 7, 2020

The &: syntax for GNU Make Rules with Grouped Targets is accepted but doesn't have the expected effect of only executing the recipe once even if many targets in the group need rebuilding.

Makefile:

all: foo bar

clearlog:
	touch build.log && truncate -s 0 build.log

foo bar &: clearlog
	touch foo && touch bar && echo "Recipe invoked" >> build.log

.PHONY: clearlog

Contents of build.log after make all, i.e. "expected":

Recipe invoked

Contents of build.log after biomake -H all, i.e. "actual":

Recipe invoked
Recipe invoked

EDIT: this is a hypothetical question because I currently don't have means to promise anything, but if I could find a sponsor, would you be willing to accept bounties to fix incompatibilities like this and #79 and usability issues like #80 on a "within a reasonable timeframe" basis, rather than "when we get a chance to do it" basis? I believe there is some real market for a "GNU Make but with hashes".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant