mirror of
https://github.com/linux-msm/bootrr.git
synced 2026-02-25 13:12:03 -08:00
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:
8
Makefile
8
Makefile
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user