mirror of
https://github.com/systemd/systemd.git
synced 2024-12-25 01:34:28 +03:00
build-sys: check that python is enabled for "make dist"
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
This commit is contained in:
parent
b9d5b4c30d
commit
279419b379
12
Makefile.am
12
Makefile.am
@ -5369,6 +5369,18 @@ DISTCHECK_CONFIGURE_FLAGS += \
|
|||||||
--enable-gtk-doc
|
--enable-gtk-doc
|
||||||
endif
|
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
|
# check "broken" platforms limited toolchains for link breakage before we release
|
||||||
.PHONY: linkcheck
|
.PHONY: linkcheck
|
||||||
linkcheck:
|
linkcheck:
|
||||||
|
Loading…
Reference in New Issue
Block a user