X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=Makefile.am;h=ffb10d69c37a78be45bd56eaaf698fbc3dc26684;hb=8fe12d88a8b4d5beb64e5d4efd205043a01b0c13;hp=ccecc3ec17ed16c995b1ff74bfd2c3139e84ced3;hpb=48d7417d3e934696d9944db556c795eb0fd7ac21;p=elogind.git diff --git a/Makefile.am b/Makefile.am index ccecc3ec1..ffb10d69c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1506,7 +1506,7 @@ systemd_shutdownd_LDADD = \ libsystemd-daemon-internal.la \ libsystemd-shared.la -pkginclude_HEADERS += \ +dist_doc_DATA += \ src/systemd/sd-shutdown.h # ------------------------------------------------------------------------------ @@ -1783,14 +1783,10 @@ systemd_cgroups_agent_LDADD = \ systemctl_SOURCES = \ src/systemctl/systemctl.c -systemctl_CFLAGS = \ - $(AM_CFLAGS) \ - $(DBUS_CFLAGS) - systemctl_LDADD = \ libsystemd-units.la \ libsystemd-label.la \ - libsystemd-dbus.la \ + libsystemd-bus-internal.la \ libsystemd-logs.la \ libsystemd-login-internal.la \ libsystemd-journal-internal.la \ @@ -3847,14 +3843,12 @@ loginctl_SOURCES = \ src/login/loginctl.c \ src/login/sysfs-show.c -loginctl_CFLAGS = \ - $(AM_CFLAGS) \ - $(DBUS_CFLAGS) - loginctl_LDADD = \ - libsystemd-dbus.la \ + libsystemd-bus-internal.la \ libudev-internal.la \ - libsystemd-shared.la + libsystemd-shared.la \ + libsystemd-id128-internal.la \ + libsystemd-daemon-internal.la rootbin_PROGRAMS += \ loginctl @@ -4572,4 +4566,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