You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
417 B
17 lines
417 B
7 years ago
|
# Enter project path into pathmap
|
||
|
#
|
||
|
# $(1): name
|
||
|
# $(2): path
|
||
|
#
|
||
|
define project-set-path
|
||
|
$(eval pathmap_PROJ += $(1):$(2))
|
||
|
endef
|
||
|
|
||
|
# Returns the path to the requested module's include directory,
|
||
|
# relative to the root of the source tree.
|
||
|
#
|
||
|
# $(1): a list of modules (or other named entities) to find the projects for
|
||
|
define project-path-for
|
||
|
$(foreach n,$(1),$(patsubst $(n):%,%,$(filter $(n):%,$(pathmap_PROJ))))
|
||
|
endef
|