[systemd-devel] [PATCH 8/9] build-sys: check that python is enabled for "make dist"
Filipe Brandenburger
filbranden at google.com
Mon Jun 16 20:54:53 PDT 2014
Running "make dist" requires Python support since some of the man page sources
(such as man/systemd.index.xml and man/systemd.directives.xml) are generated by
Python scripts, so break "make dist" and give an useful error message when
Python or the Python lxml module is not available.
Tested:
$ ./configure --without-python && make && make dist
*** python and python-lxml module must be installed and enabled in order to make dist
make: *** [dist-check-python] Error 1
---
Makefile.am | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/Makefile.am b/Makefile.am
index 8a6efdf36d42..87154d9f1baf 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -5300,6 +5300,18 @@ DISTCHECK_CONFIGURE_FLAGS += \
--enable-gtk-doc
endif
+#
+# Require python when making dist
+#
+.PHONY: dist-check-python
+dist-check-python:
+if !HAVE_PYTHON
+ @echo "*** python and python-lxml module must be installed and enabled in order to make dist"
+ @false
+endif
+
+dist: dist-check-python
+
# check "broken" platforms limited toolchains for link breakage before we release
.PHONY: linkcheck
linkcheck:
--
1.9.3
More information about the systemd-devel
mailing list