Commit d3b4fbc2 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Andrei Vagin

nmk: Gather reserved vars on top of build

Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@gmail.com>
Reviewed-by: 's avatarDmitry Safonov <0x7f454c46@gmail.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent 6ed2532b
......@@ -6,17 +6,25 @@ ifndef ____nmk_defined__build
src := $(obj)
src-makefile := $(call objectify,$(makefile))
obj-y :=
obj-e :=
builtin-name :=
builtin-target :=
lib-y :=
lib-e :=
lib-name :=
lib-target :=
hostprogs-y :=
libso-y :=
ld_flags :=
ldflags-so :=
arflags-y :=
target :=
deps-y :=
all-y :=
builtin-name :=
lib-name :=
ld_flags :=
cleanup-y :=
mrproper-y :=
target :=
objdirs :=
libso-y :=
MAKECMDGOALS := $(call uniq,$(MAKECMDGOALS))
......@@ -112,7 +120,6 @@ $(eval $(call gen-cc-rules,$(obj)/%,$(obj)/%))
#
# Prepare targets.
ifneq ($(lib-y),)
lib-target :=
ifneq ($(lib-name),)
lib-target := $(obj)/$(lib-name)
else
......@@ -125,7 +132,6 @@ ifneq ($(lib-y),)
endif
ifneq ($(obj-y),)
builtin-target :=
ifneq ($(builtin-name),)
builtin-target := $(obj)/$(builtin-name)
else
......
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