fix cleaning in out-of-tree builds

The altered previously failed if the rst sources hadn't been copied over.
This commit is contained in:
Benjamin Peterson 2017-06-11 00:03:36 -07:00
parent 6ec7683991
commit 28f88d46f3
1 changed files with 1 additions and 1 deletions

View File

@ -267,7 +267,7 @@ apiref.rst: \
$(APIDOCS): apiref.rst $(APIDOCS): apiref.rst
clean-local: 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 apiref.rst
-rm -f $(APIDOCS) -rm -f $(APIDOCS)
-rm -rf $(BUILDDIR)/* -rm -rf $(BUILDDIR)/*