diff --git a/foreign_cc/configure.bzl b/foreign_cc/configure.bzl index 34f1f0d3..781f3abd 100644 --- a/foreign_cc/configure.bzl +++ b/foreign_cc/configure.bzl @@ -82,7 +82,7 @@ def _create_configure_script(configureParameters): for target in ctx.attr.targets: # Configure will have generated sources into `$BUILD_TMPDIR` so make sure we `cd` there - make_commands.append("{prefix}{make} -C $$BUILD_TMPDIR$$ {target} {args}".format( + make_commands.append("{prefix}{make} {target} {args}".format( prefix = prefix, make = attrs.make_path, args = args, diff --git a/foreign_cc/make.bzl b/foreign_cc/make.bzl index 2ccb029c..1daf7d37 100644 --- a/foreign_cc/make.bzl +++ b/foreign_cc/make.bzl @@ -58,7 +58,7 @@ def _create_make_script(configureParameters): make_commands = [] prefix = "{} ".format(expand_locations_and_make_variables(ctx, attrs.tool_prefix, "tool_prefix", data)) if attrs.tool_prefix else "" for target in ctx.attr.targets: - make_commands.append("{prefix}{make} -C $$BUILD_TMPDIR$$ {target} {args} PREFIX={install_prefix}".format( + make_commands.append("{prefix}{make} {target} {args} PREFIX={install_prefix}".format( prefix = prefix, make = attrs.make_path, args = args,