mirror of
https://github.com/systemd/systemd.git
synced 2024-12-18 06:33:36 +08:00
build-sys: simplify defined/undefined definition
This commit is contained in:
parent
a94042fa9b
commit
39da205fbb
11
Makefile.am
11
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 \
|
||||
|
Loading…
Reference in New Issue
Block a user