diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -77,7 +77,9 @@ 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) . | awk '{ print strftime("[%Y-%m-%d %H:%M:%S]"), $$0 }' | tee build_$(FLAVOUR)_debug.log + @docker build --no-cache=true --rm --pull -t $(IMAGE_NAME) . \ + | awk 'BEGIN { t0=systime();t1=t0; }{t=systime(); printf("[%s|%3ds] %s\n",strftime("%H:%M:%S",t-t0,1),t-t1,$$0); t1=systime(); fflush();}' \ + | tee build_$(FLAVOUR)_debug.log @rm -f INSTALL/DEBUG INSTALL/flavour.conf @docker images @@ -89,7 +91,9 @@ 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) . | awk '{ print strftime("[%Y-%m-%d %H:%M:%S]"), $$0 }' | tee build_$(FLAVOUR).log + @docker build --no-cache=true --rm --pull -t $(IMAGE_NAME) . \ + | awk 'BEGIN { t0=systime();t1=t0; }{t=systime(); printf("[%s|%3ds] %s\n",strftime("%H:%M:%S",t-t0,1),t-t1,$$0); t1=systime(); fflush();}' \ + | tee build_$(FLAVOUR)_debug.log @rm -f INSTALL/flavour.conf @docker images |