From 55fca14c8020dcd142986fdb65058459fe652c6d Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Wed, 8 Jan 2014 03:15:00 +0400 Subject: [PATCH] make clean: fix When running 'make clean' from the top dir, the following error happens: make[3]: Leaving directory `/vz/kir/git/criu/test/zdtm/live/static' make[2]: Leaving directory `/vz/kir/git/criu/test/zdtm/live' set -e; for d in lib live; do make -C $d cleanout; done make[2]: Entering directory `/vz/kir/git/criu/test/zdtm/lib' make[2]: *** No rule to make target `cleanout'. Stop. make[2]: Leaving directory `/vz/kir/git/criu/test/zdtm/lib' make[1]: *** [cleanout] Error 2 make[1]: Leaving directory `/vz/kir/git/criu/test/zdtm' make: *** [clean] Error 2 Fix by adding dummy cleanout target to test/zdtm/lib/Makefile Signed-off-by: Kir Kolyshkin Signed-off-by: Pavel Emelyanov --- test/zdtm/lib/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/zdtm/lib/Makefile b/test/zdtm/lib/Makefile index 2baf9aeb9..f494df64c 100644 --- a/test/zdtm/lib/Makefile +++ b/test/zdtm/lib/Makefile @@ -26,9 +26,12 @@ clean: cleandep: $(RM) -f $(LIBDEP) +cleanout: + @true + realclean: clean cleandep -.PHONY: clean cleandep realclean +.PHONY: clean cleandep cleanout realclean ifeq ($(filter-out no-deps-targets, $(MAKECMDGOALS)),) -include $(LIBDEP)