]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
build-sys: make sure check-api-docs sees each symbol just once 347/head
authorLennart Poettering <lennart@poettering.net>
Tue, 23 Jun 2015 19:32:38 +0000 (21:32 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 23 Jun 2015 23:13:07 +0000 (19:13 -0400)
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.

Makefile.am

index 936e4edd810531aa81ca0de7a3f3384855cfc515..2d81d2908ee2904274b2e3435947416c57c9ea68 100644 (file)
@@ -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