GNU Make - Unconditionally run a target before any other targets
cross-posted from: lemmy.ml/post/6856563
When writing a (GNU) Makefile, there are times when you need a particular target(s) to be run before anything else. That can be for example to check the environment, ensure variables are set or prepare a particular directory layout.
… take advantage of GNU Make’s mechanism of
include
ing andmake
ing makefiles which is described in details in the manual:
![](https://kbin.life/media/cache/resolve/entry_thumb/5c/0a/5c0aee701bb4d949b3e14b589a2afc13d9f3ce04e60fe8708c626b2551e3b720.png)