From 15a0f41dd37c2147d2dd5da14eb3707fdeb22855 Mon Sep 17 00:00:00 2001 From: Raimo Niskanen Date: Thu, 10 Nov 2011 10:16:18 +0100 Subject: Cleanup the use of TARGET in toplevel and common make and build files Common file target.mk now passes the TARGET value through config.sub for canonification. Toplevel Makefile now calls target.mk so it handles TARGET like all sub-makefiles. Build script otp_build no longer creates a target specific directory that a long time ago was used for target specific configure cache file. --- otp_build | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'otp_build') diff --git a/otp_build b/otp_build index 44bbab22b5..76f1d20ff7 100755 --- a/otp_build +++ b/otp_build @@ -324,16 +324,6 @@ do_autoconf () fi } -mk_targetdir () -{ - if [ ! -d $ERL_TOP/$TARGET ]; then - echo "creating $ERL_TOP/$TARGET" - mkdir $ERL_TOP/$TARGET - else - echo "existing $ERL_TOP/$TARGET is used" - fi -} - run_configure () { cdir="$ERL_TOP" @@ -499,7 +489,6 @@ maybe_copy_static_cache () do_configure () { setup_make - mk_targetdir # Get `erl_build_tool_vars' . "$ERL_TOP/erl-build-tool-vars.sh" || exit 1 @@ -513,7 +502,6 @@ do_configure () hide_vars OVERRIDE_TARGET TARGET TARGET=$BUILDSYS export TARGET - mk_targetdir set_config_flags "$@" run_configure "$@" restore_vars OVERRIDE_TARGET TARGET;; -- cgit v1.2.3