X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=Makefile.am;h=df552e3a02341cf73807f0e11929e70b75c44927;hb=fa57130d35dd8fd8c3f2f2126dd7fc6930a08e35;hp=5c3cbc18761d8b4682be6e226efa4ba119e5bbd0;hpb=aac6ad0d2f3dd295129256b0b8d66bea876b94b6;p=elogind.git diff --git a/Makefile.am b/Makefile.am index 5c3cbc187..df552e3a0 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) 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 \ + if test -f $(builddir)/man/$$symbol.html ; then \ + echo " Symbol $$symbol() is documented." ; \ + else \ + echo "‣ Symbol $$symbol() lacks documentation." ; \ + fi ; \ + done