chiark / gitweb /
build-sys: make building of index.html fail sensibly
authorLennart Poettering <lennart@poettering.net>
Mon, 16 Jul 2012 17:10:57 +0000 (19:10 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 16 Jul 2012 17:10:57 +0000 (19:10 +0200)
Makefile.am

index a48e05b..cf911a0 100644 (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