criu/scripts/nmk/scripts
Dmitry Safonov 3693c5e6f9 build/nmk: declare build-as as a recursive
So, how it was working:
1. build-as was declared with $$(1) and $$(2) which were expanded
on entering the submake;
2. function $(call build-as,...) performed the second expansion of
build-as.

Cons: build-as works only in sub-makefile, no sub-sub-makefile, no
upper/top makefile.

Simplify this by single $(1).
Then build-as variable will be used _only_ in makefile, not in
sub-makefiles.

This is for now fine, as each file, that calls $(MAKE) with
$(build)=dir or $(call build-as,makefile,dir) will include main.mk
from NMK, which has build-as definition (from include.mk).

In the future, we'll get rid of $(build) and $(build-as) workarounds
as finally switch to building from a global makefile.

Cc: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Dmitry Safonov <dsafonov@virtuozzo.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
2016-08-01 18:38:35 +03:00
..
build.mk nmk: build.mk -- Add @libso-y helper 2016-04-01 18:06:31 +03:00
include.mk build/nmk: declare build-as as a recursive 2016-08-01 18:38:35 +03:00
macro.mk nmk: scritps/macro.mk -- Enhance gen-built-in 2016-03-23 13:10:45 +03:00
main.mk nmk: Drop rules.mk 2016-04-01 18:06:30 +03:00
msg.mk nmk: msg.mk -- Add host- messages 2016-04-01 18:06:30 +03:00
tools.mk nmk: add cscope, etags and ctags wrappers 2016-02-24 23:25:40 +03:00
utils.mk nmk: utils.mk -- Add cleanify helper 2016-03-25 23:39:22 +03:00