summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index a48e05bd87..cf911a0fe4 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -668,8 +668,8 @@ noinst_DATA += \
CLEANFILES += \
man/index.html
-man/index.html: $(XML_FILES)
- $(AM_V_GEN)$(PYTHON) $(top_srcdir)/make-man-index.py $(XML_FILES) > $@
+man/index.html: $(XML_FILES) $(top_srcdir)/make-man-index.py
+ $(AM_V_GEN)$(PYTHON) $(top_srcdir)/make-man-index.py $(XML_FILES) > $@ || rm $@
endif
endif