Commit ed9032b5 authored by Petr Špaček's avatar Petr Špaček

build docs: detect sphinx and python-breathe presence in make info

parent 3d82f1c3
......@@ -25,6 +25,7 @@ $(eval $(call find_alt,lua,luajit))
$(eval $(call find_lib,cmocka))
$(eval $(call find_bin,doxygen))
$(eval $(call find_bin,sphinx-build))
$(eval $(call find_pythonpkg,breathe))
$(eval $(call find_lib,libmemcached,1.0))
$(eval $(call find_lib,hiredis,,yes))
$(eval $(call find_lib,socket_wrapper))
......@@ -96,6 +97,8 @@ info:
$(info Optional)
$(info --------)
$(info [$(HAS_doxygen)] doxygen (doc))
$(info [$(HAS_sphinx-build)] sphinx-build (doc))
$(info [$(HAS_breathe)] python-breathe (doc))
$(info [$(HAS_go)] go (modules/go, Go buildmode=c-shared support))
$(info [$(HAS_libmemcached)] libmemcached (modules/memcached))
$(info [$(HAS_hiredis)] hiredis (modules/redis))
......
......@@ -83,7 +83,9 @@ Most of the dependencies can be resolved from packages, here's an overview for s
# integration tests
sudo dnf install cmake git python-dns python-jinja2
# optional features
sudo dnf install doxygen golang hiredis-devel libmemcached-devel systemd-devel
sudo dnf install golang hiredis-devel libmemcached-devel systemd-devel
# docs
sudo dnf install doxygen python-breathe python-sphinx
* **RHEL/CentOS** - unknown.
* **openSUSE** - there is an `experimental package <https://build.opensuse.org/package/show/server:dns/knot-resolver>`_.
......
......@@ -183,6 +183,11 @@ define find_gopkg
HAS_$(1) := $(shell go list $(2) > /dev/null 2>&1 && echo yes || echo no)
endef
# Find Python package
define find_pythonpkg
HAS_$(1) := $(shell python -c "import $(1)" > /dev/null 2>&1 && echo yes || echo no)
endef
define find_soname
# N/A on Windows
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment