Module: check_mk
Branch: master
Commit: d5378fbd415e398ed1971ca0fcce18f5c16b4d49
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d5378fbd415e39…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Thu Feb 2 09:42:49 2017 +0100
Fixed compile_commands.json target
Change-Id: I827d9b925297f471d8947e3b08c0ff275a786e4d
---
Makefile | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 5fd9423..9fd4e5e 100644
--- a/Makefile
+++ b/Makefile
@@ -22,6 +22,12 @@
# to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
# Boston, MA 02110-1301 USA.
+ifneq (,$(wildcard enterprise))
+ENTERPRISE := yes
+else
+ENTERPRISE := no
+endif
+
SHELL := /bin/bash
VERSION := 1.4.0i4
NAME := check_mk
@@ -330,9 +336,12 @@ GTAGS: config.h
$(MAKE) -C livestatus GTAGS
compile_commands.json: config.h $(FILES_TO_FORMAT)
- @echo "making $@: $? is newer"
$(MAKE) -C livestatus clean
$(BEAR) $(MAKE) -C livestatus -j8
+ifeq ($(ENTERPRISE),yes)
+ $(MAKE) -C enterprise/core clean
+ $(BEAR) --append $(MAKE) -C enterprise/core -j8
+endif
tidy: compile_commands.json
@scripts/compiled_sources | xargs $(CLANG_TIDY) --extra-arg=-D__clang_analyzer__