chiark / gitweb /
build-sys: check that compat-libs are enabled for "make dist"
[elogind.git] / Makefile.am
index 28acc64685fda0dceb3a98900d4a28f9388b7ff1..b48b122f35e18c49b7b8fd1f25c6a8e399206d52 100644 (file)
@@ -5369,6 +5369,24 @@ 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-check-compat-libs:
+if !ENABLE_COMPAT_LIBS
+       @echo "*** compat-libs must be enabled in order to make dist"
+       @false
+endif
+
+dist: dist-check-python dist-check-compat-libs
+
 # check "broken" platforms limited toolchains for link breakage before we release
 .PHONY: linkcheck
 linkcheck: