From b7c0ab63f342ea97a8aa6cd14003b66e27f946f4 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 24 Nov 2009 15:46:54 +0000 Subject: Baptiste Daroussin: 27431: _make: fix for FreeBSD --- Completion/Unix/Command/_make | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Completion/Unix/Command/_make') diff --git a/Completion/Unix/Command/_make b/Completion/Unix/Command/_make index f0d208837..e404d162d 100644 --- a/Completion/Unix/Command/_make +++ b/Completion/Unix/Command/_make @@ -193,7 +193,13 @@ else then parseMakefile $PWD < <(_call_program targets "$words[1]" -nsp --no-print-directory -f "$file" .PHONY 2> /dev/null) else - parseMakefile $PWD < $file + case "$OSTYPE" in + freebsd*) + parseMakefile $PWD < <(_call_program targets "$words[1]" -nsp -f "$file" .PHONY 2> /dev/null) + ;; + *) + parseMakefile $PWD < $file + esac fi fi -- cgit 1.4.1