projects
/
platform
/
upstream
/
dbus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9708294
)
Make "make -C test clean" idempotent
author
Simon McVittie
<simon.mcvittie@collabora.co.uk>
Fri, 5 Aug 2011 12:16:47 +0000
(13:16 +0100)
committer
Simon McVittie
<simon.mcvittie@collabora.co.uk>
Wed, 21 Sep 2011 10:25:48 +0000
(11:25 +0100)
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>
test/Makefile.am
patch
|
blob
|
history
diff --git
a/test/Makefile.am
b/test/Makefile.am
index
e5fd756
..
7474455
100644
(file)
--- 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