79654346

Date: 2025-06-05 11:26:51
Score: 2
Natty:
Report link

You need to detect something like ROOT_SOURCE_DIR in your build_makefileN.mk

ROOT_SOURCE_DIR:=$(abspath $(dir $(filter %build_makefile1.mk,$(MAKEFILE_LIST))))

And then include intermediate makefiles relative to this directory:

include $(ROOT_SOURCE_DIR)/common/other_dir/...

See also https://github.com/sergeniously/makeup/blob/master/makeup/.mk

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Sergey Belenkov