summaryrefslogtreecommitdiffstats
path: root/Completion/Unix/Command/_make
diff options
context:
space:
mode:
authorJun T <takimoto-j@kba.biglobe.ne.jp>2013-07-25 01:14:22 +0900
committerPeter Stephenson <pws@zsh.org>2013-07-25 09:47:47 +0100
commitc5d9abc6c8f818a3823c70696e412c4496f6a5be (patch)
treef5fa498b277ec82ca2d9ec222cdc46c841b139be /Completion/Unix/Command/_make
parent31574: alternative fix for bad fd if no FD_CLOEXEC. (diff)
downloadzsh-c5d9abc6c8f818a3823c70696e412c4496f6a5be.tar
zsh-c5d9abc6c8f818a3823c70696e412c4496f6a5be.tar.gz
zsh-c5d9abc6c8f818a3823c70696e412c4496f6a5be.tar.bz2
zsh-c5d9abc6c8f818a3823c70696e412c4496f6a5be.tar.lz
zsh-c5d9abc6c8f818a3823c70696e412c4496f6a5be.tar.xz
zsh-c5d9abc6c8f818a3823c70696e412c4496f6a5be.tar.zst
zsh-c5d9abc6c8f818a3823c70696e412c4496f6a5be.zip
31756: further make completion improvements.
ake care of mutually exclusive options. Add _description using $state_descr. Add completions for --debug=flag. Fix typo (pointed out by Daniel Shahaf).
Diffstat (limited to 'Completion/Unix/Command/_make')
-rw-r--r--Completion/Unix/Command/_make76
1 files changed, 44 insertions, 32 deletions
diff --git a/Completion/Unix/Command/_make b/Completion/Unix/Command/_make
index 355c68e13..0c5371dad 100644
--- a/Completion/Unix/Command/_make
+++ b/Completion/Unix/Command/_make
@@ -148,7 +148,7 @@ _make-findBasedir () {
_make() {
local prev="$words[CURRENT-1]" file expl tmp is_gnu dir incl match
- local context state line
+ local context state state_descr line
local -a option_specs
local -A TARGETS VARIABLES opt_args
local ret=1
@@ -159,35 +159,35 @@ _make() {
then
incl="(-|)include"
option_specs=(
- {-B,--always-make}'[Unconditionally make all targets]'
- '*'{-C,--directory=}'[change directory first]:directory:->dir'
- '-d[Print lots of debug information]'
- '--debug=-[Print various types of debug information]:FLAGS'
- {-e,--environment-overrides}'[Environment variables override makefiles]'
- '--eval=-[Evaluate STRING as a makefile statement]:STRING'
- {-f,--file=,--makefile=}'[Read FILE as a makefile]:file:->file'
- '-h[Print this message and exit]'
- {-i,--ignore-errors}'[Ignore errors from recipes]'
- '*'{-I,--include-dir=}'[Search DIRECTORY for included makefiles]:directory:->dir'
- {-j,--jobs=}'[Allow N jobs at once; infinite jobs with no arg]:number of jobs'