make: Move files into subdirectories

Instead of mixing helpers and board files move them to separate folders.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
This commit is contained in:
Bjorn Andersson
2018-03-06 11:33:41 -08:00
parent bc136385d1
commit ede63f2b8a
10 changed files with 4 additions and 4 deletions

View File

@@ -16,15 +16,15 @@ BOARDS := arrow,apq8096-db820c \
qcom,apq8016-sbc
define add-scripts
$(DESTDIR)$(prefix)/bin/$1: $1
$(DESTDIR)$(prefix)/bin/$2: $1/$2
@echo "INSTALL $$<"
@install -D -m 755 $$< $$@
all-install += $(DESTDIR)$(prefix)/bin/$1
all-install += $(DESTDIR)$(prefix)/bin/$2
endef
$(foreach v,${BOARDS},$(eval $(call add-scripts,$v)))
$(foreach v,${HELPERS},$(eval $(call add-scripts,$v)))
$(foreach v,${BOARDS},$(eval $(call add-scripts,boards,$v)))
$(foreach v,${HELPERS},$(eval $(call add-scripts,helpers,$v)))
install: $(all-install)