我怎么能做这样的事情呢?
DIRS = app_interface/capi
chip/dep/chal
chip/dep/common
chip/dep/ml
chip/indep
cli/test_project
platform/reg_access
platform/utils
$(foreach dir,$(DIRS),-include $(dir)/.build/object_files.mk)
all:
... remainder of the makefile
基本上,如<代码>$(foreach ......)的声明,实际上是:
-include app_interface/capi/.build/object_files.mk
-include chip/dep/chal/.build/object_files.mk
... and so forth