From 2456c6c1ea786773eea43100c7f9343082b0635d Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Sun, 18 Feb 2018 19:07:21 +0100 Subject: [PATCH] +upd makefile verbosity --- Makefile | 42 ++++++++++++++++++++++++------------------ 1 file changed, 24 insertions(+), 18 deletions(-) diff --git a/Makefile b/Makefile index f7f343c..cfac4e0 100644 --- a/Makefile +++ b/Makefile @@ -1,23 +1,29 @@ start: - @echo -n "> 1. Execute pre-start script.........."; - @bash ./metactl/pre-start.sh && echo "done" || (echo "failed"; exit 1); - @echo -n "> 2. Build & launch environment........"; - @docker-compose up -d > /dev/null 2>&1 && echo "done" || (echo "failed"; exit 1); - @echo -n "> 3. Execute post-start script........."; - @bash ./metactl/post-start.sh && echo "done" || (echo "failed"; exit 1); + @echo "> [1] pre-start script"; + @bash ./metactl/pre-start.sh && echo "< done" || (echo "< failed"; exit 1); + @echo; + @echo "> [2] Build & launch environment"; + @docker-compose up -d > /dev/null 2>&1 && echo "< done" || (echo "< failed"; exit 1); + @echo; + @echo "> [3] post-start script"; + @bash ./metactl/post-start.sh && echo "< done" || (echo "< failed"; exit 1); start-no-cache: - @echo -n "> 1. Execute pre-start script.........."; - @bash ./metactl/pre-start.sh && echo "done" || (echo "failed"; exit 1); - @echo -n "> 2. Build & launch environment........"; - @docker-compose up --force-recreate --build -d > /dev/null 2>&1 && echo "done" || (echo "failed"; exit 1); - @echo -n "> 3. Execute post-start script........."; - @bash ./metactl/post-start.sh && echo "done" || (echo "failed"; exit 1); + @echo "> [1] pre-start script"; + @bash ./metactl/pre-start.sh && echo "< done" || (echo "< failed"; exit 1); + @echo; + @echo "> [2] Build & launch environment"; + @docker-compose up --force-recreate --build -d > /dev/null 2>&1 && echo "< done" || (echo "< failed"; exit 1); + @echo; + @echo "> [3] post-start script"; + @bash ./metactl/post-start.sh && echo "< done" || (echo "< failed"; exit 1); stop: - @echo -n "> 1. Execute pre-stop script..........."; - @bash ./metactl/pre-stop.sh && echo "done" || (echo "failed"; exit 1); - @echo -n "> 2. Stop and remove environment....."; - @docker-compose down > /dev/null 2>&1 && echo "done" || (echo "failed"; exit 1); - @echo -n "> 3. Execute post-stop script.........."; - @bash ./metactl/post-stop.sh && echo "done" || (echo "failed"; exit 1); \ No newline at end of file + @echo "> [1] pre-stop script"; + @bash ./metactl/pre-stop.sh && echo "< done" || (echo "< failed"; exit 1); + @echo; + @echo "> [2] Stop and remove environment"; + @docker-compose down > /dev/null 2>&1 && echo "< done" || (echo "< failed"; exit 1); + @echo; + @echo "> [3] post-stop script"; + @bash ./metactl/post-stop.sh && echo "< done" || (echo "< failed"; exit 1); \ No newline at end of file