build-sys: make building of index.html fail sensibly

This commit is contained in:
Lennart Poettering 2012-07-16 19:10:57 +02:00
parent 92e1ecc62b
commit 6fa9a61092

View File

@ -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