Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: Use "make -p" to get targets



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