From 28f88d46f39dd01d30afe73cfbad57a3d2b48c43 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sun, 11 Jun 2017 00:03:36 -0700 Subject: [PATCH] fix cleaning in out-of-tree builds The altered previously failed if the rst sources hadn't been copied over. --- doc/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/Makefile.am b/doc/Makefile.am index 9511b492..e1af0980 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -267,7 +267,7 @@ apiref.rst: \ $(APIDOCS): apiref.rst clean-local: - [ $(srcdir) = $(builddir) ] || for i in $(RST_FILES); do [ -e $(builddir)/$$i ] && rm -f $(builddir)/$$i; done + if [ $(srcdir) != $(builddir) ]; then for i in $(RST_FILES); do rm -f $(builddir)/$$i; done fi -rm -f apiref.rst -rm -f $(APIDOCS) -rm -rf $(BUILDDIR)/*