From: Lennart Poettering Date: Tue, 23 Jun 2015 19:32:38 +0000 (+0200) Subject: build-sys: make sure check-api-docs sees each symbol just once X-Git-Tag: v222~80^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b7b85f227c72681e4369d7368bda787be0ef3fa0;p=thirdparty%2Fsystemd.git build-sys: make sure check-api-docs sees each symbol just once Given that some symbols are exposed by multiple libraries (due to the compatibility libraries), let's ensure "make check-api-docs" only shows each symbol once by filtering out duplicates. --- diff --git a/Makefile.am b/Makefile.am index 936e4edd810..2d81d2908ee 100644 --- a/Makefile.am +++ b/Makefile.am @@ -6322,7 +6322,7 @@ exported-%: % $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@ exported: $(addprefix exported-, $(lib_LTLIBRARIES)) - $(AM_V_GEN)cat $^ > $@ + $(AM_V_GEN)sort -u $^ > $@ .PHONY: check-api-docs check-api-docs: exported man