Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 05 Sep 2015 21:05:21 -0700
From:      Carl Johnson <carlj@peak.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: GCC question
Message-ID:  <874mj88a66.fsf@elk.localnet>
In-Reply-To: <alpine.BSF.2.20.1509052041040.78141@wonkity.com> (Warren Block's message of "Sat, 5 Sep 2015 20:50:29 -0600 (MDT)")
References:  <55EAEE19.2060807@hiwaay.net> <20150905140658.GA790@ozzmosis.com> <55EAF9BA.3080700@hiwaay.net> <87oahg97ff.fsf@elk.localnet> <20150906011733.GC94488@neutralgood.org> <alpine.BSF.2.20.1509052041040.78141@wonkity.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Warren Block <wblock@wonkity.com> writes:

> On Sat, 5 Sep 2015, kpneal@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
>>> since.
>>
>> 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,
> anyway:
>
>   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`/' \
>                         'n/-V/`__makevars`/'
>
> '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.

I don't normally use csh, but those definitely give some good
information to work with.

Thank you.
-- 
Carl Johnson		carlj@peak.org




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?874mj88a66.fsf>