Commit 14ed3718 authored by Simon McVittie's avatar Simon McVittie

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=40004Reviewed-by: Will Thompson's avatarWill Thompson <will.thompson@collabora.co.uk>
parent 9708294c
......@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment