summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>2016-06-18 18:16:03 +0200
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>2016-06-18 18:30:26 +0200
commita52cd392c1aab02c7969ec8383ed1a4582698315 (patch)
treeb1fe5d6c7fe48cac18d5ad2b518e33a20129f5fa
parented8f923065efc8251ca8faaf878f7c98c6cec6a1 (diff)
Makefile: Fix and update docker-clean.
Change-Id: I468f4e37057e812c85034b16748a8083d0c96ab4 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
-rw-r--r--Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 1772637e..d106df2b 100644
--- a/Makefile
+++ b/Makefile
@@ -37,9 +37,15 @@ patches-import:
git am ${root}/patches/$$name/*.patch; \
fi'
clean-docker:
- docker stop FUEL_CENTOS_8.0 || true
- docker rm $(shell docker ps -a -q) || true
- docker rmi -f $(shell docker images -q) || true
+ @if [ -d ${root}/upstream/fuel/build ]; then \
+ sudo make -C ${root}/upstream/fuel/build deepclean; \
+ fi
+ @for container in $(shell sudo docker ps -a -q); do \
+ sudo docker rm -f -v $${container}; \
+ done
+ @for image in $(shell sudo docker images -q); do \
+ sudo docker rmi -f $${image}; \
+ done
clean-build:
sudo rm -rf /tmp/fuel-main