From: Zbigniew Jędrzejewski-Szmek Date: Wed, 18 Jul 2012 14:14:24 +0000 (+0200) Subject: build-sys: fix (again) index generation in subdir X-Git-Tag: v188~110 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=a804b788a89a881260c4d4c7eccc1677f27c54af build-sys: fix (again) index generation in subdir make-man-index.py doesn't care about .html files, only .xml files, so the source list was wrong. Also, $(XML_FILES) are specified without prefix, so compilation in sepearate build-dir was broken: GEN man/index.html Traceback (most recent call last): File "../make-man-index.py", line 24, in t = parse(p) File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1183, in parse tree.parse(source, parser) File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 647, in parse source = open(source, "rb") IOError: [Errno 2] No such file or directory: 'man/systemd.xml' --- diff --git a/Makefile.am b/Makefile.am index 6f886425e..bf703813d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -673,9 +673,9 @@ noinst_DATA += \ CLEANFILES += \ man/index.html -$(builddir)/man/index.html: $(XML_FILES:.xml=.html) $(top_srcdir)/make-man-index.py +man/index.html: make-man-index.py $(XML_FILES) $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ - $(PYTHON) $(top_srcdir)/make-man-index.py $(XML_FILES) > $@ + $(PYTHON) $^ > $@ EXTRA_DIST += \ man/index.html