From owner-freebsd-questions@FreeBSD.ORG Mon Jul 4 18:43:48 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DDF9816A41C for ; Mon, 4 Jul 2005 18:43:48 +0000 (GMT) (envelope-from dexter@ambidexter.com) Received: from tortoise.way.lv (7.lmuza.lv [195.13.151.139]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9781443D46 for ; Mon, 4 Jul 2005 18:43:48 +0000 (GMT) (envelope-from dexter@ambidexter.com) Received: from localhost (localhost [127.0.0.1]) by tortoise.way.lv (Postfix) with ESMTP id 7DEF71FED5A; Mon, 4 Jul 2005 21:43:33 +0300 (EEST) Received: from tortoise.way.lv ([127.0.0.1]) by localhost (tortoise [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23740-06; Mon, 4 Jul 2005 21:43:28 +0300 (EEST) Received: from [192.168.1.100] (unknown [213.175.79.146]) by tortoise.way.lv (Postfix) with ESMTP id 1A2061FED52; Mon, 4 Jul 2005 21:43:28 +0300 (EEST) Mime-Version: 1.0 Message-Id: In-Reply-To: <42C96953.9020406@mac.com> References: <42C96953.9020406@mac.com> Date: Mon, 4 Jul 2005 21:43:38 +0300 To: Chuck Swiger From: Michael Dexter Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at way.lv Cc: freebsd-questions@freebsd.org Subject: Re: List all make targets? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jul 2005 18:43:49 -0000 >Michael Dexter wrote: >>Is there a 'make' flag to list all make targets for any given >>directory containing Makefile* ? > >grep ':' Makefile ...comes pretty close. Another reader suggested I cat the file... I take it the answer is "no." Specifically I am looking for a quick way to see the make targets as 'make' would accept them while hunting for 'uninstall' and other surprises. I see that it gets complicated as i.e. "_legacy" is a legitimate target along with "buildworld." More to investigate! >>It's a brilliant mechanism but I get lost chasing variables that >>may span /usr/src/Makefile.inc1 and /usr/share/mk/ and... > >What problem are you trying to solve? My understanding of the system for the purposes of world reduction and custom release engineering. My work is 1/2 way to being an informal howto on the subject. Thanks to all who responded. Michael.