From owner-freebsd-questions@freebsd.org Sun Sep 6 04:05:24 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A3AED9C5CF3 for ; Sun, 6 Sep 2015 04:05:24 +0000 (UTC) (envelope-from carlj@peak.org) Received: from filter01.peakinternet.com (filter01.peakinternet.com [207.55.16.92]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7CD50950 for ; Sun, 6 Sep 2015 04:05:24 +0000 (UTC) (envelope-from carlj@peak.org) Received: from zmail-mta02.peak.org ([207.55.16.112]) by filter01.peakinternet.com ({e1c81c21-e4c4-4528-aa90-7a27869c545a}) via TCP (outbound) with ESMTPS id 20150906040523652_0000 for ; Sat, 05 Sep 2015 21:05:23 -0700 X-RC-FROM: X-RC-RCPT: Received: from zmail-mta02.peak.org (localhost [127.0.0.1]) by zmail-mta02.peak.org (Postfix) with ESMTPS id 2010E4E215 for ; Sat, 5 Sep 2015 21:05:23 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zmail-mta02.peak.org (Postfix) with ESMTP id 077074E218 for ; Sat, 5 Sep 2015 21:05:23 -0700 (PDT) Received: from zmail-mta02.peak.org ([127.0.0.1]) by localhost (zmail-mta02.peak.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id hrBNBVZHkjjn for ; Sat, 5 Sep 2015 21:05:22 -0700 (PDT) Received: from mailproxy-lb-07.peak.org (mailproxy-lb-07.peak.org [207.55.17.97]) by zmail-mta02.peak.org (Postfix) with ESMTP id C17E74E215 for ; Sat, 5 Sep 2015 21:05:22 -0700 (PDT) Received: from carlj by elk.localnet with local (Exim 4.80) (envelope-from ) id 1ZYRCj-0002Vt-NF for freebsd-questions@freebsd.org; Sat, 05 Sep 2015 21:05:21 -0700 From: Carl Johnson To: freebsd-questions@freebsd.org Subject: Re: GCC question References: <55EAEE19.2060807@hiwaay.net> <20150905140658.GA790@ozzmosis.com> <55EAF9BA.3080700@hiwaay.net> <87oahg97ff.fsf@elk.localnet> <20150906011733.GC94488@neutralgood.org> Mail-Followup-To: freebsd-questions@freebsd.org X-Clacks-Overhead: GNU Terry Pratchett Date: Sat, 05 Sep 2015 21:05:21 -0700 In-Reply-To: (Warren Block's message of "Sat, 5 Sep 2015 20:50:29 -0600 (MDT)") Message-ID: <874mj88a66.fsf@elk.localnet> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-MAG-OUTBOUND: peakinternet.redcondor.net@207.55.16/22 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Sep 2015 04:05:24 -0000 Warren Block 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