[CRIU] [PATCH] make clean: fix
Kir Kolyshkin
kir at openvz.org
Tue Jan 7 15:15:11 PST 2014
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 <kir at openvz.org>
---
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 2baf9ae..f494df6 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)
--
1.8.1.4
More information about the CRIU
mailing list