Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: Use "make -p" to get targets
- X-seq: zsh-workers 10657
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: PATCH: Use "make -p" to get targets
- Date: Tue, 11 Apr 2000 15:10:14 +0000
- In-reply-to: <200004110820.KAA03945@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <200004110820.KAA03945@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
On Apr 11, 10:20am, Sven Wischnowsky wrote:
} Subject: Re: PATCH: Use "make -p" to get targets
}
} > ...
} >
} > +if (( ! $+_is_gnu[$1] )); then
}
} Different from _diff_options, _make doesn't get the command-to-call as
} the first argument.
Ooops. You missed one, though:
Index: Completion/User/_make
===================================================================
@@ -32,7 +32,7 @@
fi
if [[ -n "$file" ]] && _tags targets; then
- if [[ -n "$_is_gnu[$1]" ]]; then
+ if [[ -n "$_is_gnu[$words[1]]" ]]; then
tmp=( $(make -nsp --no-print-directory -f "$file" .PHONY | awk '/^[a-zA-Z0-9][^\/\t=]+:/ {print $1}' FS=:) )
else
tmp=(
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Messages sorted by:
Reverse Date,
Date,
Thread,
Author