Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
make _make works at finding targets with freebsd's make
- X-seq: zsh-workers 27431
- From: Baptiste Daroussin <baptiste.daroussin@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: make _make works at finding targets with freebsd's make
- Date: Tue, 24 Nov 2009 16:28:50 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:date:from:to:subject :message-id:mime-version:content-type:content-disposition:user-agent; bh=lyV0ediAbFX9z68ib2HME0GwQBtgS/U/ttFt4dhMihQ=; b=uQE+4apft2dyhG9fBFkElCQSGmRbSGY4OdC78Nv6d1jl/H92+JY+N9KgEbPToNLTHR eEwMtwOw3S210bcm6oNeYg49LHgM2vHBic5zdZPmM9lfx+ooyhypGbGrAlz3GhK4sBFY K0rFNoUD8wx8MOZzsTb1LBlFy1wgU0QTp0UuU=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:mime-version:content-type :content-disposition:user-agent; b=B8UdRO/ygS1B+BKlA21wqdhdpEwHtNY/r2RPzCatWj+22MVMx8yBx3L2xeKjCPQXwU pkD4bTBY4y/51wGk7K42wwj3iqjDsrvAHlCNw6O/R+8TO9mn2lU4DVRAlFXeMxW0X/EQ pEAX3MJzXYBSv+T1WqBGLBVZJscyI31/cfv20=
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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
From dc5e357927db945ebdb130ee12c0a48ff006cfef Mon Sep 17 00:00:00 2001
From: Bapt <baptiste.daroussin@xxxxxxxxx>
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author