From b06e78c16c94f0f894cebcc50ff3230fe6407755 Mon Sep 17 00:00:00 2001 From: JP Mens Date: Tue, 14 Jan 2020 12:01:13 +0100 Subject: [PATCH] make: use -f instead of --file to aid in portability (#65880) `make` on FreeBSD (and others) has support for an option `-f` to specify a `Makefile`, whereas GNU make uses `--file` or `-f`. In the interest of portability use `-f` which covers both. --- lib/ansible/modules/system/make.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/system/make.py b/lib/ansible/modules/system/make.py index df26147c133..175011835ee 100644 --- a/lib/ansible/modules/system/make.py +++ b/lib/ansible/modules/system/make.py @@ -127,7 +127,7 @@ def main(): make_parameters = [] if module.params['file'] is not None: - base_command = [make_path, "--file", module.params['file'], make_target] + base_command = [make_path, "-f", module.params['file'], make_target] else: base_command = [make_path, make_target] base_command.extend(make_parameters)