Commit 8eda75ff authored by Vaibhav Gupta's avatar Vaibhav Gupta

Makefile: Do not build Doc if sphinx not found

If sphinx not found, make recipe will fail and it will throw error.
Hence CI will also fail.
Signed-off-by: 's avatarVaibhav Gupta <vaibhav.gupta@cern.ch>
parent f1514fd3
Pipeline #4910 failed
......@@ -3,16 +3,22 @@
# SPDX-FileCopyrightText: 2019 CERN
C_DIRS = \
tools \
tools/lib \
drivers/fmc
DIRS = $(C_DIRS) \
Documentation/fmc
DIRS = $(C_DIRS)
ifeq ($(shell bash -c 'which sphinx-build > /dev/zero; echo $$?'),0)
DIRS += Documentation/fmc
endif
all clean cleanall install: $(DIRS)
clean: TARGET = clean
cleanall: TARGET = cleanall
install: TARGET = install
tools: tools/lib
$(DIRS):
$(MAKE) -C $@ $(TARGET)
......
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