summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-11-07 17:26:01 +0100
committerLennart Poettering <lennart@poettering.net>2013-11-07 17:26:01 +0100
commita27e222b58824c08fa0da18106cf28a02b6c5e23 (patch)
tree61af0f34b71e4390153c6b205a0284426d33a5d4 /Makefile.am
parentb3273dafc730e6973045f94a849553a9b5280d2d (diff)
build-sys: add a make target to look for undocumented symbols
With super-pretty output!
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am13
1 files changed, 12 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 5c3cbc1876..86baae0e75 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -4572,4 +4572,15 @@ install-tree: all
# Let's run all tests of the test suite, but under valgrind. Let's
# exclude the one perl script we have in there
valgrind-tests: $(TESTS)
- for f in $(TESTS) ; do [ "$$f" == "$${f/.pl/}" ] && libtool --mode=execute valgrind --leak-check=full --error-exitcode=55 $(builddir)/$$f ; done
+ for f in $(TESTS) ; do \
+ [ "$$f" == "$${f/.pl/}" ] && libtool --mode=execute valgrind --leak-check=full --error-exitcode=55 $(builddir)/$$f ; \
+ done
+
+check-api-docs: $(lib_LTLIBRARIES)
+ 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 \
+ if test -f $(builddir)/man/$$symbol.html ; then \
+ echo " Symbol $$symbol() is documented." ; \
+ else \
+ echo "‣ Symbol $$symbol() lacks documentation." ; \
+ fi ; \
+ done