diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-11-09 08:00:33 -0500 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-11-09 19:02:53 -0500 |
commit | 39da205fbb31851ce67442fc8c7c809a6a9344f5 (patch) | |
tree | 75018addedd09e2cd9cc88a4f47f44bffe85ed3e | |
parent | a94042fa9b0733ae0c4e27747ee68d1a7865c8c6 (diff) |
build-sys: simplify defined/undefined definition
-rw-r--r-- | Makefile.am | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/Makefile.am b/Makefile.am index e6d5723205..ae927af907 100644 --- a/Makefile.am +++ b/Makefile.am @@ -4636,15 +4636,10 @@ check-api-docs: $(lib_LTLIBRARIES) man OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES)) ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v))) -defined: $(ALL_OBJECTS) +undefined defined: $(ALL_OBJECTS) $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \ - nm -g --undefined-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \ - done | cut -c 20- | cut -d @ -f 1 | sort -u > $(builddir)/undefined - -undefined: $(ALL_OBJECTS) - $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \ - nm -g --defined-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \ - done | cut -c 20- | cut -d @ -f 1 | sort -u > $(builddir)/defined + nm -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \ + done | cut -c 20- | cut -d @ -f 1 | sort -u > $@ CLEANFILES += \ defined \ |