maint: avoid "make distcheck" failure without excess .deps directories

* Makefile.am (my-distcheck): Add the -r option to xargs so that
rmdir doesn't return an error when there are no extraneous .deps dirs.
This commit is contained in:
Pádraig Brady
2016-11-30 14:47:08 +00:00
parent a2bb79844f
commit 40434e566e

View File

@@ -123,7 +123,7 @@ my-distcheck: $(DIST_ARCHIVES) $(local-check)
# With post-v1.15 automake, "distclean" would fail to remove .deps
# directories, leading to a spurious failure of the following recursive diff.
# FIXME: remove this, once automake is fixed.
find $(t)/$(distdir).old $(t)/$(distdir) -name .deps | xargs rmdir
find $(t)/$(distdir).old $(t)/$(distdir) -name .deps | xargs -r rmdir
diff -ur $(t)/$(distdir).old $(t)/$(distdir)
-rm -rf $(t)
rmdir $(tmpdir)/$(PACKAGE) $(tmpdir)