From: Petr Špaček Date: Fri, 13 Jan 2017 08:35:27 +0000 (+0100) Subject: build docs: detect sphinx and python-breathe presence in make info X-Git-Tag: v1.2.0-rc1~22^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed9032b580f7bc2be75d1d9b3ceea955bcfadb6a;p=thirdparty%2Fknot-resolver.git build docs: detect sphinx and python-breathe presence in make info --- diff --git a/Makefile b/Makefile index 42aa45435..193f2f60f 100644 --- a/Makefile +++ b/Makefile @@ -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)) diff --git a/doc/build.rst b/doc/build.rst index e6f0c7d98..f4c67245b 100644 --- a/doc/build.rst +++ b/doc/build.rst @@ -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 `_. diff --git a/platform.mk b/platform.mk index 67d035a67..6bbbb0a20 100644 --- a/platform.mk +++ b/platform.mk @@ -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