Makefile: Don't create invalid sub-project targets
At the moment targets are created for any file that is in a sub-directory of the project directory. This is not the intended behavior. Targets should only be generated for sub-projects. We can identify those by filtering for sub-directories that have a Makefile. E.g. some of those invalid targets were "adv7511.Makefile" and "scripts.adi_board.tcl". Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>main
parent
685f2eaf1e
commit
0048cc350e
2
Makefile
2
Makefile
|
@ -19,7 +19,7 @@ help:
|
|||
|
||||
PROJECTS := $(filter-out $(NO_PROJ), $(notdir $(wildcard projects/*)))
|
||||
SUBPROJECTS := $(foreach projname,$(PROJECTS), \
|
||||
$(foreach archname,$(notdir $(wildcard projects/$(projname)/*)), \
|
||||
$(foreach archname,$(notdir $(subst /Makefile,,$(wildcard projects/$(projname)/*/Makefile))), \
|
||||
$(projname).$(archname)))
|
||||
|
||||
.PHONY: lib all clean clean-all $(SUBPROJECTS)
|
||||
|
|
Loading…
Reference in New Issue