Fix indentation and add patch-import output 83/14583/1
authorStanislaw Kardach <stanislaw.kardach@cavium.com>
Tue, 24 May 2016 14:25:13 +0000 (16:25 +0200)
committerStanislaw Kardach <stanislaw.kardach@cavium.com>
Tue, 24 May 2016 14:25:13 +0000 (16:25 +0200)
I've added submodule name to `patch-import` target to make it easier to
spot in which submodule does patch import fail.

Signed-off-by: Stanislaw Kardach <stanislaw.kardach@cavium.com>
Makefile

index 619d0b7..333bf5a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -12,7 +12,7 @@ submodules-init:
 submodules-clean:
        @git submodule -q foreach \
                'git am --abort; \
-                git checkout -q armband-workbench-root; \
+               git checkout -q armband-workbench-root; \
                git branch -q -D armband-workbench; \
                git tag -d armband-workbench-root; \
                git reset -q --hard HEAD; git clean -xdff'
@@ -33,6 +33,7 @@ patches-import:
        @git submodule -q foreach 'git checkout -q -b armband-workbench'
        @git submodule -q foreach \
                'if [ ! -z "$$(ls ${root}/patches/$$name/)" ]; then \
+                       echo "-- patching $$name"; \
                        git am ${root}/patches/$$name/*.patch; \
                fi'
 clean-docker: