- remove bogus targets from make completion

This commit is contained in:
ianmacd 2003-11-03 23:27:29 +00:00
parent 0dd15c6cc7
commit 33a4623648

View File

@ -1,6 +1,6 @@
# bash_completion - some programmable completion functions for bash 2.05b # bash_completion - some programmable completion functions for bash 2.05b
# #
# $Id: bash_completion,v 1.648 2003/11/03 23:33:01 ianmacd Exp $ # $Id: bash_completion,v 1.649 2003/11/04 00:27:29 ianmacd Exp $
# #
# Copyright (C) Ian Macdonald <ian@caliban.org> # Copyright (C) Ian Macdonald <ian@caliban.org>
# #
@ -2409,9 +2409,8 @@ _make()
[ ! -f $makef ] && return 0 [ ! -f $makef ] && return 0
COMPREPLY=( $( awk -F':' '/^[^\t ]*:/ {print $1}' $makef \ COMPREPLY=( $( awk -F':' '/^[a-zA-Z0-9][^\/\t=]+:/ {print $1}'\
2>/dev/null | grep -v "^[.%#]" | grep "^$cur" )) $makef 2>/dev/null | grep "^$cur" ))
fi fi
} }
[ -n "${have:-}" ] && complete -F _make $default make gmake pmake [ -n "${have:-}" ] && complete -F _make $default make gmake pmake