From b973b188a9719d3b05d7c639b22544a18288c0f4 Mon Sep 17 00:00:00 2001 From: Tim Pierce Date: Mon, 30 Dec 2013 18:15:53 -0500 Subject: [PATCH] Fix makefile syntax for `realclean' target. --- docker/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/Makefile b/docker/Makefile index 5ff415a6d7..ae19ac0980 100644 --- a/docker/Makefile +++ b/docker/Makefile @@ -8,9 +8,9 @@ clean: # `make realclean' will also remove the docker images and force # subsequent makes to build the entire chain from the ground up realclean: clean - docker stop $(docker ps -q) - docker rm $(docker ps -a -q) - docker rmi $(docker images -q) + -[ -n "`docker ps -q`" ] && docker stop `docker ps -q` + -docker rm `docker ps -a -q` + -docker rmi `docker images -q` # ============================================================ # Dependencies for */generated files which are prerequisites -- 2.30.2