Finding the Directory of a Makefile for Includes
When you have shared Makefiles included across multiple projects in different directory structures, relative includes break. If common.mk tries to include release.mk and both files are in a subdirectory like external/, the include fails because Make uses the current working directory, not the location of the including file. For example, this structure works fine: Makefile…
