this post was submitted on 22 Oct 2023
12 points (87.5% liked)
General Programming Discussion
9265 readers
9 users here now
A general programming discussion community.
Rules:
- Be civil.
- Please start discussions that spark conversation
Other communities
Systems
Functional Programming
Also related
founded 6 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
You may like an approach I came up with some time ago.
In my
included file that's common among myMakefiles:At the top of a
Makefilethat I want to ensure certain variables are set before it runs:I usually do these checks in sub-Makefiles to ensure someone didn't break the top level Makefile by not passing down a required macro.