[systemd-devel] [PATCH 2/1] build-sys: fix index.html generation with separate build dir

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Tue Jul 17 10:08:02 PDT 2012


XML source files should have paths starting with $(top_srcdir).
We can tell make to add the prefix automatically for us, by
specifying the python script and xml files as source files.

(Found by 'make distcheck'.)
---
Hi,
three small follow-up patches to the build system.

Zbyszek

 Makefile.am | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git Makefile.am Makefile.am
index aaa5ab0..e0b8c86 100644
--- Makefile.am
+++ Makefile.am
@@ -672,9 +672,9 @@ noinst_DATA += \
 CLEANFILES += \
 	man/index.html
 
-man/index.html: $(XML_FILES) $(top_srcdir)/make-man-index.py
+man/index.html: make-man-index.py $(XML_FILES)
 	$(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
-	$(AM_V_GEN)$(PYTHON) $(top_srcdir)/make-man-index.py $(XML_FILES) > $@
+	$(AM_V_GEN)$(PYTHON) $^ > $@
 endif
 
 endif
-- 
1.7.11.1.282.g511ba53



More information about the systemd-devel mailing list