style: use GNU Make foreach instead of a shell for loop (#927)

Just for conciseness and style.

Signed-off-by: Juan Cruz Viotti <jviotti@openmailbox.org>
This commit is contained in:
Juan Cruz Viotti 2016-12-02 10:27:25 -04:00 committed by GitHub
parent 223932eb7b
commit 9c02f976ae

View File

@ -98,9 +98,7 @@ release/electron-$(TARGET_PLATFORM)-$(TARGET_ARCH)-app: \
release/electron-$(TARGET_PLATFORM)-$(TARGET_ARCH)-dependencies/node_modules \
release/electron-$(TARGET_PLATFORM)-$(TARGET_ARCH)-dependencies/bower_components
./scripts/unix/electron-create-resources-app.sh -s . -f "$(APPLICATION_FILES)" -o $@
for prerequisite in $^; do \
cp -rf $$prerequisite $@; \
done
$(foreach prerequisite,$^,cp -rf $(prerequisite) $@;)
release/electron-$(TARGET_PLATFORM)-$(TARGET_ARCH)-app.asar: \
release/electron-$(TARGET_PLATFORM)-$(TARGET_ARCH)-app