summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-11-10 23:51:22 +0100
committerLennart Poettering <lennart@poettering.net>2013-11-10 23:54:55 +0100
commitd23284faa9a4d78410b939d42d20b6da3e475f87 (patch)
tree064da1fca9b15d53f9d657f653937fba4c092751 /Makefile.am
parentc2e0d600ed76f6767d59715d93cf862808552ea2 (diff)
build-sys: subtract list of exported symbols from "check-api-unused" list
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am13
1 files changed, 9 insertions, 4 deletions
diff --git a/Makefile.am b/Makefile.am
index ae927af907..55a945b65b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -4624,8 +4624,13 @@ valgrind-tests: $(TESTS)
[ "$$f" == "$${f/.pl/}" ] && libtool --mode=execute valgrind --leak-check=full --error-exitcode=55 $(builddir)/$$f ; \
done
-check-api-docs: $(lib_LTLIBRARIES) man
- for symbol in `for f in $(lib_LTLIBRARIES) ; do nm -g --defined-only $(builddir)/.libs/"$${f/.la/.so}" 2>&1 /dev/null | grep " T " | cut -d" " -f3 ; done` ; do \
+exported: $(lib_LTLIBRARIES)
+ $(AM_V_GEN)for f in $(lib_LTLIBRARIES) ; do \
+ nm -g --defined-only $(builddir)/.libs/"$${f/.la/.so}" 2>&1 /dev/null | grep " T " | cut -d" " -f3 ; \
+ done > $@
+
+check-api-docs: exported man
+ for symbol in `cat exported` ; do \
if test -f $(builddir)/man/$$symbol.html ; then \
echo " Symbol $$symbol() is documented." ; \
else \
@@ -4645,5 +4650,5 @@ CLEANFILES += \
defined \
undefined
-check-api-unused: defined undefined
- diff -u undefined defined | grep ^+ | grep -v ^+++ | cut -c2-
+check-api-unused: defined undefined exported
+ ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-