summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2011-08-05 13:16:47 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2011-09-21 11:25:48 +0100
commit14ed371845c50aa8fe5849c373ca2c65e96ec153 (patch)
tree1b752a270ea39291f720dce3cd9ac48c7d2b99c2
parent9708294c052820e7914025d7bae6d29b37cd9298 (diff)
Make "make -C test clean" idempotent
Previously, it'd fail when done twice, because you can't rmdir a nonexistent directory. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=40004 Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
-rw-r--r--test/Makefile.am4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/Makefile.am b/test/Makefile.am
index e5fd756b..74744559 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -272,6 +272,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