wblock at wonkity.com
Sun Sep 6 02:50:31 UTC 2015
On Sat, 5 Sep 2015, kpneal at pobox.com wrote:
> On Sat, Sep 05, 2015 at 09:07:00AM -0700, Carl Johnson wrote:
>> As long as this came up, does anybody know of a similar incantation to
>> show the defined rules and symbols for make? I remember seeing
>> something like that years ago, but I haven't been able to find it
> There's a bunch of -d suboptions to make in its man page.
> Try "-dg1 -dv" as options to make. If that isn't quite right it should
> at least be a starting point.
These are not perfect, but they are useful. If you use csh/tcsh,
alias __makevars 'make -ndv |& perl -ne '\''print "$1\n" if /^(?:Command|Global|Internal):(\S+?)\s+/;'\'' | sort -u'
complete make 'C/F/(FORMATS= FORMATS=html FORMATS=html-split FORMATS=pdf)/' \
'p/1/`make -V .ALLTARGETS`/' \
'make' [space] [tab] completes from available targets.
'make -V' [space] [tab] completes from known variables.
Both probably miss some. The variable completion could be
faster. Improvements welcome.
(The first is for me, to complete 'make FORMATS=' for docs.)
More information about the freebsd-questions