I have a recipe in a Makefile which should always be executed, without any condition and no matter what (and if a) target is specified at the invocation of make
.
Executing this recipe will have an effect on some other rules' preconditions, so I'd like this recipe to be executed before make
considers any other rules in the Makefile.
Since executing this recipe will not always cause other rules' preconditions to be met (i.e. such that make
considers them outdated), I can't put this recipe in a .PHONY
target and have this as a precondition to other targets, because make
would then consider all dependent targets as outdated, even if they're not.
I thought of defining a dummy variable which gets assigned the result of a ${shell my ; recipe ; commands}
but that doesn't seem to execute reliably.