# HG changeset patch # User ihse # Date 1511998237 -3600 # Node ID 143496e1a14c574611d955c6fb80c78081a4f7d2 # Parent 0ffb2cce1b190154d502e49f77f4858edc422efe Clean up gnumake duplicated logic. diff -r 0ffb2cce1b19 -r 143496e1a14c make/conf/jib-profiles.js --- a/make/conf/jib-profiles.js Wed Nov 29 23:34:29 2017 +0100 +++ b/make/conf/jib-profiles.js Thu Nov 30 00:30:37 2017 +0100 @@ -789,6 +789,10 @@ var boot_jdk_platform = (input.build_os == "macosx" ? "osx" : input.build_os) + "-" + input.build_cpu; + var makeBinDir = (input.build_os == "windows" + ? input.get("gnumake", "install_path") + "/cygwin/bin" + : input.get("gnumake", "install_path") + "/bin"); + var dependencies = { boot_jdk: { @@ -841,18 +845,13 @@ ? "gnumake-" + input.build_osenv_platform : "gnumake-" + input.build_platform), - configure_args: (input.build_os == "windows" - ? "MAKE=" + input.get("gnumake", "install_path") + "/cygwin/bin/make" - : "MAKE=" + input.get("gnumake", "install_path") + "/bin/make"), + configure_args: "MAKE=" + makeBinDir + "/make", - environment_name: "MAKE", - environment_value: (input.build_os == "windows" - ? input.get("gnumake", "install_path") + "/cygwin/bin/make" - : input.get("gnumake", "install_path") + "/bin/make"), + environment: { + "MAKE": makeBinDir + "/make" + }, - environment_path: (input.build_os == "windows" - ? input.get("gnumake", "install_path") + "/cygwin/bin" - : input.get("gnumake", "install_path") + "/bin") + environment_path: makeBinDir }, freetype: {