diff options
-rwxr-xr-x | build | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -1,8 +1,5 @@ #!/usr/bin/make -f -# To simplify recursion -0 = $(MAKE) -f ../build - # POSIX.1-2008: # If the pathname does not begin with a '/' it shall be treated as relative to # the current working directory of the process, not relative to the directory @@ -265,13 +262,13 @@ build_$(target): build-$(type) install_$(target): install-$(type) configure build install: - for target in $(targets); do \ + for tgt in $(targets); do \ if [ x"$${target}" = x'$(OPK_HOST_ARCH)' ]; then \ type='native'; \ else \ type='cross'; \ fi; \ - $0 target="$${target}" type="$${type}" "$@_$${target}"; \ + $(MAKE) -f ../build target=$${tgt} type=$${type} $@_$${tgt}; \ done touch $@ |