summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2014-02-10 10:37:11 +0100
committerTom Gundersen <teg@jklm.no>2014-02-10 13:00:19 +0100
commitbfb35cfda11d529f02c698e87ae298309a776305 (patch)
tree9751c81ae67d521dd767c74b96979e5cf72e34be /Makefile.am
parent63a1b905d83b8d223f78822122c71860c1b613d1 (diff)
build-sys: add check-includes build target and script
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 4f5e036990..3730e71dc2 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -4936,6 +4936,14 @@ CLEANFILES += \
check-api-unused: defined undefined exported
( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
+.PHONY: check-includes
+check-includes: $(top_srcdir)/tools/check-includes.pl
+ $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
+ | xargs $(top_srcdir)/tools/check-includes.pl
+
+EXTRA_DIST += \
+ $(top_srcdir)/tools/check-includes.pl
+
# Stupid test that everything purported to be exported really is
define generate-sym-test