zsh-workers
 help / color / mirror / code / Atom feed
* zsh make(1) completion on FreeBSD
@ 2016-10-06  2:56 Guilherme Salazar
  2016-10-11 21:21 ` Daniel Shahaf
  0 siblings, 1 reply; 11+ messages in thread
From: Guilherme Salazar @ 2016-10-06  2:56 UTC (permalink / raw)
  To: zsh-workers

Hey,

The _make completion script has the following snippet:

case "$OSTYPE" in
  freebsd*)
    _make-parseMakefile $PWD < <(_call_program targets "$words[1]"
-nsp -f "$file" 4| .PHONY 2> /dev/null)
  ;;

That is, _call_program invokes the make command ($words[1]) with the
given options (-nsp...) to get the make database. The issue is the
default make utility in FreeBSD is not GNU Make and it does not
support these options; to get something in FreeBSD make, we could use
the -d option (for debugging), along with A (for all) -- see [1] for
details.

If one has gmake installed, one can replace "$words[1]" with gmake or
g"$words[1]" to have gmake dump the database info, but I'm not sure
it's the ideal solution.

[1] https://www.freebsd.org/cgi/man.cgi?query=make&apropos=0&sektion=1&manpath=FreeBSD+11-current&arch=default&format=html

Cheers,
G. Salazar


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2016-10-16 16:36 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-06  2:56 zsh make(1) completion on FreeBSD Guilherme Salazar
2016-10-11 21:21 ` Daniel Shahaf
2016-10-11 23:27   ` Guilherme Salazar
2016-10-12  0:02     ` Daniel Shahaf
2016-10-12  0:24       ` Guilherme Salazar
2016-10-12  0:36         ` Daniel Shahaf
2016-10-12  1:14           ` Guilherme Salazar
2016-10-12  3:27             ` Guilherme Salazar
2016-10-13 10:08               ` Oliver Kiddle
2016-10-14  6:10                 ` Daniel Shahaf
2016-10-16 16:34             ` Daniel Shahaf

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).