From 56edb6a51e6deb56c374a933237886556f2e94fe Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Fri, 5 Aug 2011 13:16:47 +0100 Subject: [PATCH 3/3] Make "make -C test clean" idempotent Previously, it'd fail when done twice, because you can't rmdir a nonexistent directory. --- test/Makefile.am | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/test/Makefile.am b/test/Makefile.am index a870d3d..cc1cfce 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -253,6 +253,8 @@ clean-local: REVERSEDIRS="$$D $$REVERSEDIRS" ; \ done ; \ for D in $$REVERSEDIRS; do \ - rmdir $(top_builddir)/test/$$D || exit 1 ; \ + rmdir $(top_builddir)/test/$$D || \ + test ! -d $(top_builddir)/test/$$D || \ + exit 1 ; \ done ; \ fi -- 1.7.5.4