diff --git a/Documentation/Makefile.sphinx b/Documentation/Makefile.sphinx index a23d3c8b4848adeda85aaec4a0bd2e41ad373245..707c65337ebf340e35d664c7da4b12e239e11db2 100644 --- a/Documentation/Makefile.sphinx +++ b/Documentation/Makefile.sphinx @@ -98,7 +98,7 @@ installmandocs: cleandocs: $(Q)rm -rf $(BUILDDIR) - $(Q)$(MAKE) -C Documentation/media clean + $(Q)$(MAKE) BUILDDIR=$(abspath $(BUILDDIR)) -C Documentation/media clean endif # HAVE_SPHINX diff --git a/Documentation/media/Makefile b/Documentation/media/Makefile index ab05323b779b71c2616d9aa91d45ea3f659e8daa..4d8e2ff378c46c1b534c84ce1496164101be16c3 100644 --- a/Documentation/media/Makefile +++ b/Documentation/media/Makefile @@ -105,7 +105,7 @@ xml: all latex: $(IMGPDF) all clean: - -rm -f $(DOTTGT) $(IMGTGT) $(patsubst %,$(SRC_DIR)/%,${TARGETS}) 2>/dev/null + -rm -f $(DOTTGT) $(IMGTGT) ${TARGETS} 2>/dev/null $(BUILDDIR): $(Q)mkdir -p $@