Module: check_mk
Branch: master
Commit: 69814ce07d6f352408eab871dd878f132ac4503a
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=69814ce07d6f35…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Mon Nov 9 08:27:29 2015 +0100
Added iwyu target
---
Makefile | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/Makefile b/Makefile
index 5b557d3..ab6353c 100644
--- a/Makefile
+++ b/Makefile
@@ -32,6 +32,7 @@ LIBDIR = $(PREFIX)/lib/$(NAME)
DISTNAME = $(NAME)-$(VERSION)
TAROPTS = --owner=root --group=root --exclude=.svn --exclude=*~ \
--exclude=.gitignore --exclude=*.swp --exclude=.f12
+IWYU = include-what-you-use
# File to pack into livestatus-$(VERSION).tar.gz
LIVESTATUS_SOURCES = configure aclocal.m4 config.guess config.h.in config.sub \
@@ -238,3 +239,8 @@ mrproper:
setup:
sudo apt-get install figlet pngcrush slimit
+
+# Not really perfect rules, but better than nothing
+iwyu:
+ $(MAKE) -C livestatus clean
+ $(MAKE) -C livestatus CC=$(IWYU) CXX=$(IWYU) -k