On Mon, Jan 25, 2021 at 10:59 PM Gavin Smith <gavinsmith0123@xxxxxxxxx> wrote: > storing the value that should be in CC in the file CC.conf. Does this > work or does GNU make have other ways of doing this? (It would be > better if it could be done without communicating via files.) Is there > any way to set a Makefile variable from within a rule and then depend upon > that variable being set in other rules? Replying to self: I read that there is something called an "order-only prerequisite" that could be for the rule that sets CC. This would be set using the $(eval ...) construct. Somebody who knows more than me about GNU make could confirm. https://www.gnu.org/software/make/manual/make.html#Prerequisite-Types