Oliver Kiddle
e6c5482dd8
45196: fix completion after make -C, allowing for -C being used multiple times
2020-01-03 23:01:00 +01:00
Oliver Kiddle
5df672b9d7
44896: use opt_args to find base directory and use it for $(CURDIR)
2019-11-24 22:56:21 +01:00
Oliver Kiddle
7d2d242b30
44798: completion option update
2019-10-01 23:10:17 +02:00
Daniel Hahler
597acaab4f
44722: _make: use --always-make instead of .PHONY for GNU make
...
Using ".PHONY" might actually execute (phony) targets then, while
"--always-make" triggers processing of all targets, respecting `-n`
(`--dry-run`).
(This can be seen with `make -nsp .PHONY` in
https://github.com/neomake/neomake/tree/76b110d49a , where it actually
causes infinite processing then)
".PHONY" was used since the beginning here (37012f06a
[1]).
As for bmake (which also uses `.PHONY`): there does not appear to be a
similar option for it.
While it might work better there (i.e. not causing targets to be run),
it causes an error at least when testing it quickly - which indicates
that it behaves as if using any other non-existing (or special) target
there maybe:
> bmake: don't know how to make .PHONY. Stop
This was added in ecc0a5ece
[2] (workers-39654).
Since it uses `-s -f "$file" -V.ALLTARGETS` with `bmake` before to get
targets explicitly, there might not be a reason for calling `bmake` with
`-nsdg1Fstdout … .PHONY` additionally in the first place?!
1: https://github.com/danielshahaf/zsh/commit/37012f06a
2: https://github.com/danielshahaf/zsh/commit/ecc0a5ece
2019-09-06 08:47:55 +02:00
Daniel Shahaf
8178698bb2
unposted: _make: Allow pasted arguments for GNU make's -j option.
2018-08-13 11:17:21 +00:00
Oliver Kiddle
a2459bee79
42521 based on 42049 (SATOH Fumiyasu): fix finding of includes in make completion
...
make always includes relative to the current directory rather than
relative to the including Makefile.
2018-03-24 15:11:19 +01:00
Daniel Hahler
c18fe510f4
42327: _make: complete _files
...
The use case is completing files that are actual targets, generated
using $(wildcard …).
Q: Could this be made to only complete files if make targets and vars
are empty?
2018-02-11 20:09:30 +01:00
Oliver Kiddle
0ebf336489
41971: correctly break out of certain tag loops when there are matches
2017-11-02 21:36:55 +01:00
Oliver Kiddle
370b278565
39890: typo corrections in completion functions
2016-11-09 16:55:14 +01:00
Daniel Shahaf
ecc0a5ece2
39654: (based on patch by Baptiste Daroussin) Better support bmake, FreeBSD's default make(1) implementation.
...
Don't pass gmake options to bmake.
Add bmake-speciic codepath for completing targets and parsing the makefile.
2016-10-18 01:39:45 +00:00
Oliver Kiddle
580698bc71
39067: update options to correspond to latest versions of software in various functions
2016-08-19 18:00:07 +02:00
Barton E. Schaefer
485cbbb6cc
37972: Redirect stderr to /dev/null in cases where ${~param} might generate errors
2016-02-14 13:10:06 -08:00
Jun-ichi Takimoto
f4723a0c08
35957: fix _make-expandVars()
...
Also use variables set in the command line and environment.
2015-08-02 21:12:12 +09:00
Peter Stephenson
52aeb9aaeb
35168: Improve parsing of case patterns.
...
"|" is now found properly by looking for words that come
from the lexical analyser, rather than hacking a pattern
returned in one dollop.
Update some completion functions that need extra quoting
as a result.
Add test for new parsing.
Update version number to 5.0.8-dev-3 because of wordcode
incompatibility.
2015-05-18 09:56:00 +01:00
Peter Stephenson
8b4c46fb3f
34980: in completion match new Makefile assignment forms
2015-04-28 09:27:37 +01:00
Barton E. Schaefer
87c482d751
31840: "read" needs IFS unset to avoid stripping whitespace in makefiles
2013-10-18 08:35:22 -07:00
Peter Stephenson
1a4730b8ee
based on 31641, 31642: completion for more make variants
2013-08-29 10:46:52 +01:00
Jun T
c5d9abc6c8
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).
2013-07-25 09:47:47 +01:00
Jun T
29256a7c96
31525: Fix some options in _make
2013-07-17 19:27:20 +01:00
Nick Cross
a71b8df9b2
Update make completion with gnu options
2013-07-12 09:37:36 +01:00
Peter Stephenson
7e17ea8016
users/17856: rewrite _make to use _arguments.
...
No new option handling yet, but this should make it easier to add.
2013-07-11 11:14:38 +01:00
Mikael Magnusson
a75cbae6b7
29365: redefine _make() in _make.
2011-05-27 00:10:46 +00:00
Mikael Magnusson
5fd16e59db
29364: partial fix for make completion in dirs with spaces.
2011-05-24 01:48:12 +00:00
Mikael Magnusson
6a69eb2978
_make: add _make- prefix to helper functions
2011-04-27 13:03:41 +00:00
Mikael Magnusson
2c6c147bd3
28998: use correct return status in _make
2011-04-15 09:57:40 +00:00
Peter Stephenson
b7c0ab63f3
Baptiste Daroussin: 27431: _make: fix for FreeBSD
2009-11-24 15:46:54 +00:00
Peter Stephenson
d81fb9f1a8
27430: extend make variable value completion
2009-11-24 11:04:25 +00:00
Peter Stephenson
85842387f8
27429: _make: restore variable value completion
...
make indentation more standard
2009-11-24 10:14:33 +00:00
Peter Stephenson
b97284cde2
Michael Hwang <michael.a.hwang@gmail.com>: 27428:
...
improved _make
2009-11-24 10:01:01 +00:00
Peter Stephenson
72060c47b1
Vincent Lefevre: 24192: make GNU make completion support -include
2007-12-10 18:05:04 +00:00
Peter Stephenson
254b3f1a6b
22992: make $? available in exit traps/hooks
...
22993: slightly more effective _make variable fix
2006-11-10 09:59:26 +00:00
Peter Stephenson
434d55da8b
22988: arno: _make fix for special variables
2006-11-09 10:52:45 +00:00
Clint Adams
21fb933522
22205: patch from R.Ramkumar to use the argument to -C in make completion.
2006-02-09 14:51:24 +00:00
Clint Adams
b456dfcfba
* 20906: Completion/Unix/Command/_make: patch from Mike "Stew" O'Connor
...
to limit recursion depth in make completion variable expansion.
2005-03-02 20:31:17 +00:00
Wayne Davison
dca8aa342a
Don't try to expand a single-character Makefile variable if
...
it is a digit.
2005-03-02 19:06:23 +00:00
Wayne Davison
e4ba1a2ec8
Use ";&" to have the new "(\$*)" case fall through to the continue.
2004-11-11 19:05:25 +00:00
Wayne Davison
115c000e25
Handle $$ when expanding variables.
2004-11-10 17:28:25 +00:00
Clint Adams
07d95ba04c
* 20539: Completion/Unix/Command/_make: avoid problems minus signs
...
in expandVars().
2004-11-02 23:26:42 +00:00
Wayne Davison
bb5c466af8
Got rid of "cmdargs" local since it is no longer used.
2004-10-12 20:05:13 +00:00
Wayne Davison
4b3edafbbd
This version now uses a zsh function to parse the makefile instead
...
of awk or perl. That function has been enhanced to follow includes
and to expand variables (which makes a target such as foo$(EXEEXT)
expand into the right executable extention for the current system).
2004-10-01 17:16:02 +00:00
Clint Adams
0fa7015cc8
* 20358: Completion/Unix/Command/_make: avoid potential gawk locale bug by not using awk.
2004-09-30 16:05:47 +00:00
Wayne Davison
60b7d10a80
- Fixed the perl code that was using the @matches array.
...
- Simplified the other perl code just a little.
2004-08-21 03:07:01 +00:00
Wayne Davison
472e21e242
One of the new parenthetical expressions needs to not return a value
...
so that it doesn't put items into the @matches array.
2004-08-18 20:30:27 +00:00
Wayne Davison
f12d3cca9f
Don't output a target "VAR" for a line of the form "VAR := VALUE".
2004-08-18 20:22:46 +00:00
Wayne Davison
9dd5252c9f
Don't output make targets all clumped into a single string when useperl
...
is enabled.
2004-08-18 17:10:27 +00:00
Peter Stephenson
513088857a
17535: use-perl style for _make
2002-08-14 15:18:19 +00:00
Oliver Kiddle
79323d6d41
16842: resolve name clash for nc between netcat and the nedit client for
...
completion and add _pick_variant to resolve program variants in general
2002-03-15 16:26:08 +00:00
Sven Wischnowsky
45f9a36216
remove that -T option to compdef again and instead use comma-separated sub-contexts both for function and style lookup (16819)
2002-03-13 09:28:04 +00:00
Sven Wischnowsky
3ba711cbbe
moved from Completion/User/_make
2001-04-02 11:56:47 +00:00