about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 11:56:39 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 11:56:39 +0000
commit8a586e6ba9acc8a719d42c1500661df22e962ac7 (patch)
treebd0d6f525b705dc0cc80a6706146fc5367692d62 /Completion
parent21a4c65b0581ceab267802f97652142016ad60d4 (diff)
downloadzsh-8a586e6ba9acc8a719d42c1500661df22e962ac7.tar.gz
zsh-8a586e6ba9acc8a719d42c1500661df22e962ac7.tar.xz
zsh-8a586e6ba9acc8a719d42c1500661df22e962ac7.zip
moved to Completion/Unix/Command/_make
Diffstat (limited to 'Completion')
-rw-r--r--Completion/User/_make50
1 files changed, 0 insertions, 50 deletions
diff --git a/Completion/User/_make b/Completion/User/_make
deleted file mode 100644
index 7c7bbdae3..000000000
--- a/Completion/User/_make
+++ /dev/null
@@ -1,50 +0,0 @@
-#compdef make gmake pmake dmake
-
-local prev="$words[CURRENT-1]" file expl tmp
-
-(( $+_is_gnu )) || typeset -gA _is_gnu
-
-if (( ! $+_is_gnu[$words[1]] )); then
-  if [[ $(_call version $words[1] -v -f /dev/null </dev/null 2>/dev/null) = *GNU* ]]
-  then
-    _is_gnu[$words[1]]=yes
-  else
-    _is_gnu[$words[1]]=
-  fi
-fi
-
-if [[ "$prev" = -[CI] ]]; then
-  _files -/
-elif [[ "$prev" = -[foW] ]]; then
-  _files
-else
-  file="$words[(I)-f]"
-  if (( file )); then
-    file="$words[file+1]"
-  elif [[ -e Makefile ]]; then
-    file=Makefile
-  elif [[ -e makefile ]]; then
-    file=makefile
-  elif [[ -n "$_is_gnu[$words[1]]" && -e GNUmakefile ]]; then
-    file=GNUmakefile
-  else
-    file=''
-  fi
-
-  if [[ -n "$file" ]] && _tags targets; then
-    if [[ -n "$_is_gnu[$words[1]]" ]] &&
-       zstyle -t ":completion:${curcontext}:targets" call-command; then
-      tmp=( $(_call targets "$words[1]" -nsp --no-print-directory -f "$file" .PHONY 2> /dev/null | awk '/^[a-zA-Z0-9][^\/\t=]+:/ {print $1}' FS=:) )
-    else
-      tmp=(
-            $(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)
-           )
-    fi
-    _wanted targets expl 'make target' compadd -a tmp && return 0
-  fi
-  compset -P 1 '*='
-  _files
-fi