aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile.in
diff options
context:
space:
mode:
authorGravatar David Adam <zanchey@ucc.gu.uwa.edu.au>2015-07-29 21:41:57 +0800
committerGravatar David Adam <zanchey@ucc.gu.uwa.edu.au>2015-07-29 21:41:57 +0800
commit299a383d98f67fdd8ec5ce91f72b5d560ef4441e (patch)
tree2bbbc26755be82a59f613f9f3568d99b55893be6 /Makefile.in
parent75515af53754cb152d7fa9c63547f788946ec37b (diff)
Makefile: add target for Include What You Use (iwyu)
Requires http://include-what-you-use.org/ and Clang to operate. Doesn't quite work for the builtin_* collection; that has to be done by hand.
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile.in b/Makefile.in
index f6bc306d..45f922d6 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -828,6 +828,13 @@ depend:
./config.status
.PHONY: depend
+# Include What You Use
+iwyu:
+ # Requires the --keep-going flag as it always returns 1
+ # Can't set MAKEFLAGS on a target-specific basic
+ $(MAKE) -k _iwyu CXX=include-what-you-use
+_iwyu: clean $(PROGRAMS)
+.PHONY: iwyu _iwyu
#
# Cleanup targets