From: Baptiste Daroussin <baptiste.daroussin@gmail.com>
To: zsh-workers@zsh.org
Subject: make _make works at finding targets with freebsd's make
Date: Tue, 24 Nov 2009 16:28:50 +0100 [thread overview]
Message-ID: <20091124152850.GA61961@wicklow.lan> (raw)
[-- Attachment #1: Type: text/plain, Size: 306 bytes --]
Hi,
Here is a patch to make _make work at finding (so completing) targets using
freebsd's make
unfortunatly bsdmake are different on netbsd and openbsd so that only works on
freebsd.
I don't know if the case is the right way to do that, I did it to prepare the
case for NetBSD and OpenBSD
regards,
Bapt
[-- Attachment #2: 0001-Add-support-for-FreeBSD-s-make.patch --]
[-- Type: text/x-diff, Size: 916 bytes --]
>From dc5e357927db945ebdb130ee12c0a48ff006cfef Mon Sep 17 00:00:00 2001
From: Bapt <baptiste.daroussin@gmail.com>
Date: Tue, 24 Nov 2009 16:22:18 +0100
Subject: [PATCH] Add support for FreeBSD's make
---
Completion/Unix/Command/_make | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/Completion/Unix/Command/_make b/Completion/Unix/Command/_make
index f0d2088..e404d16 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
--
1.6.4.4
next reply other threads:[~2009-11-24 15:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-24 15:28 Baptiste Daroussin [this message]
2009-11-25 0:25 ` Michael Hwang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20091124152850.GA61961@wicklow.lan \
--to=baptiste.daroussin@gmail.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).