Commit 6ed2532b authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Andrei Vagin

nmk: Filter out already seen targets from collect-deps

Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent faa8bae6
......@@ -261,7 +261,7 @@ define collect-deps
ifeq ($(lib-target),$(1))
deps-y += $(lib-y:.o=.d)
endif
ifneq ($(filter all $(all-y) $(hostprogs-y),$(1)),)
ifneq ($(filter all $(filter-out $(builtin-target) $(lib-target), $(all-y)) $(hostprogs-y),$(1)),)
deps-y += $(obj-y:.o=.d)
deps-y += $(lib-y:.o=.d)
deps-y += $(foreach t,$(target),$(call objectify,$($(t)-lib-y:.o=.d)) $(call objectify,$($(t)-obj-y:.o=.d)))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment