aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephane Desneux <stephane.desneux@iot.bzh>2018-07-04 14:52:18 +0200
committerStephane Desneux <stephane.desneux@iot.bzh>2018-07-04 14:56:42 +0200
commit2d929b07a2971adbf1a25b2d4ef0cef7cd5e9b19 (patch)
treeb300f3f1f8b7a65becc4180d2876fd60a6f370d1
parent54a390651af2fe577996d4e55244352f776a923c (diff)
make build: add timestamps on output lines
Change-Id: I8f0d8fc04de0fa044ffda567cd96418fd88198a5 Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index c1a92ba..058263f 100644
--- a/Makefile
+++ b/Makefile
@@ -77,7 +77,7 @@ build-debug: INSTALL/flavours/$(FLAVOUR).tasks
@echo "------------------- Building image $(NAME)-$(FLAVOUR) (debug mode) -------------------"
@touch INSTALL/DEBUG
@echo "FLAVOUR=$(FLAVOUR)" >INSTALL/flavour.conf
- @docker build --no-cache=true --rm --pull -t $(IMAGE_NAME) . | tee build_$(FLAVOUR)_debug.log
+ @docker build --no-cache=true --rm --pull -t $(IMAGE_NAME) . | awk '{ print strftime("[%Y-%m-%d %H:%M:%S]"), $$0 }' | tee build_$(FLAVOUR)_debug.log
@rm -f INSTALL/DEBUG INSTALL/flavour.conf
@docker images
@@ -89,7 +89,7 @@ build: INSTALL/flavours/$(FLAVOUR).tasks
@echo "------------------- Building image $(NAME)-$(FLAVOUR) -------------------"
@rm -f INSTALL/DEBUG
@echo "FLAVOUR=$(FLAVOUR)" >INSTALL/flavour.conf
- @docker build --no-cache=true --rm --pull -t $(IMAGE_NAME) . | tee build_$(FLAVOUR).log
+ @docker build --no-cache=true --rm --pull -t $(IMAGE_NAME) . | awk '{ print strftime("[%Y-%m-%d %H:%M:%S]"), $$0 }' | tee build_$(FLAVOUR).log
@rm -f INSTALL/flavour.conf
@docker images