mirror of https://github.com/rusefi/bldc.git
[Makefile] Fully specify the root target directory
This commit is contained in:
parent
ad201aaec5
commit
a00f3e05ed
2
Makefile
2
Makefile
|
@ -9,7 +9,7 @@ ROOT_DIR := $(realpath $(WHEREAMI)/ )
|
|||
rwildcard=$(foreach d,$(wildcard $(1:=/*)),$(call rwildcard,$d,$2) $(filter $(subst *,%,$2),$d))
|
||||
|
||||
# Get the raw paths for all *.h files
|
||||
RAW_TARGET_PATHS := $(call rwildcard,hwconf,*.h)
|
||||
RAW_TARGET_PATHS := $(call rwildcard,$(ROOT_DIR)/hwconf,*.h)
|
||||
|
||||
# Get the target paths by filtering out any core.h files, then stripping extra whitespace
|
||||
TARGET_PATHS := $(strip $(filter-out %core.h,$(RAW_TARGET_PATHS)))
|
||||
|
|
Loading…
Reference in New Issue