about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorWayne Davison <wayned@users.sourceforge.net>2004-08-18 20:22:46 +0000
committerWayne Davison <wayned@users.sourceforge.net>2004-08-18 20:22:46 +0000
commitf12d3cca9ff37efe6e82ee17d6b340732347bd88 (patch)
tree7019a39a2a27c0b1523c08363c731a3407e240bf /Completion
parent973a53300bd900f3682c4283530bba1e240285ed (diff)
downloadzsh-f12d3cca9ff37efe6e82ee17d6b340732347bd88.tar.gz
zsh-f12d3cca9ff37efe6e82ee17d6b340732347bd88.tar.xz
zsh-f12d3cca9ff37efe6e82ee17d6b340732347bd88.zip
Don't output a target "VAR" for a line of the form "VAR := VALUE".
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Unix/Command/_make8
1 files changed, 4 insertions, 4 deletions
diff --git a/Completion/Unix/Command/_make b/Completion/Unix/Command/_make
index bbc757fbd..92c69dd3f 100644
--- a/Completion/Unix/Command/_make
+++ b/Completion/Unix/Command/_make
@@ -27,14 +27,14 @@ else
     if [[ $is_gnu = gnu ]] &&
        zstyle -t ":completion:${curcontext}:targets" call-command; then
        if [[ -n $useperl ]]; then
-        cmdargs=(perl -F: -ane '/^[a-zA-Z0-9][^\/\t=]+:/ && print "$F[0]\n"')
+        cmdargs=(perl -F: -ane '/^[a-zA-Z0-9][^\/\t=]+:([^=]|$)/ && print "$F[0]\n"')
        else
-        cmdargs=(awk '/^[a-zA-Z0-9][^\/\t=]+:/ {print $1}' FS=:)
+        cmdargs=(awk '/^[a-zA-Z0-9][^\/\t=]+:([^=]|$)/ {print $1}' FS=:)
        fi
        tmp=( $(_call_program targets "$words[1]" -nsp --no-print-directory -f "$file" .PHONY 2> /dev/null | $cmdargs) )
     elif [[ -n $useperl ]]; then
       tmp=(
-      $(perl -ne '@matches = /^(?:([a-zA-Z0-9]+[^\/\t=\s]+)\s*)+:/  and
+      $(perl -ne '@matches = /^(?:([a-zA-Z0-9]+[^\/\t=\s]+)\s*)+:([^=]|$)/  and
 	print join(" ", @matches), "\n";
 if (/^\.include\s+\<bsd\.port\.(subdir\.|pre\.)?mk>/ ||
     /^\.include\s+\".*mk\/bsd\.pkg\.(subdir\.)?mk\"/) {
@@ -44,7 +44,7 @@ if (/^\.include\s+\<bsd\.port\.(subdir\.|pre\.)?mk>/ ||
 	)
     else
       tmp=(
-            $(awk '/^[a-zA-Z0-9][^\/\t=]+:/ {print $1}
+            $(awk '/^[a-zA-Z0-9][^\/\t=]+:([^=]|$)/ {print $1}
  	      /^\.include  *<bsd\.port\.(subdir\.|pre\.)?mk>/ || /^\.include  *".*mk\/bsd\.pkg\.(subdir\.)?mk"/ {
  	        print "fetch fetch-list extract patch configure build install reinstall deinstall package describe checkpatch checksum makesum" }' \
  	     FS=: $file)