diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-11-12 19:02:28 -0500 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-11-12 19:02:28 -0500 |
commit | 9173a3082f019f78b02efe8c0642a88e36b7bd44 (patch) | |
tree | af3cae2ea5ea6241a7cba5767a4a480353ac5252 | |
parent | a23873387a6e722b711092c89a08ab3f3d19361c (diff) |
build-sys: parallelize 'exported' target
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | Makefile.am | 9 |
2 files changed, 6 insertions, 4 deletions
diff --git a/.gitignore b/.gitignore index eeb373f320..458cea56d7 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ /defined /undefined /exported +/exported-* /TAGS /accelerometer /ata_id diff --git a/Makefile.am b/Makefile.am index f4bfe66e52..f2d7a6977b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -4667,10 +4667,11 @@ valgrind-tests: $(TESTS) libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=4194400 --error-exitcode=55 $(builddir)/$$f ; \ done -exported: $(lib_LTLIBRARIES) - $(AM_V_GEN)for f in $(lib_LTLIBRARIES:.la=.so) ; do \ - nm -g --defined-only $(builddir)/.libs/"$$f" 2>&1 /dev/null | grep " T " | cut -d" " -f3 ; \ - done > $@ +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 $^ > $@ check-api-docs: exported man $(AM_V_GEN)for symbol in `cat exported` ; do \ |