• Dmitry Safonov's avatar
    build/nmk: declare build-as as a recursive · 3693c5e6
    Dmitry Safonov authored
    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: 's avatarDmitry Safonov <dsafonov@virtuozzo.com>
    Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
    Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
    3693c5e6
Name
Last commit
Last update
..
build Loading commit data...
nmk Loading commit data...
travis Loading commit data...
crit-setup.py Loading commit data...
fake-restore.sh Loading commit data...
feature-tests.mak Loading commit data...
flake8.cfg Loading commit data...
gen-offsets.sh Loading commit data...
magic-gen.py Loading commit data...
protobuf-gen.sh Loading commit data...
systemd-autofs-restart.sh Loading commit data...
tmp-files.sh Loading commit data...