From ed@hoeg.nl Sun Jul 9 12:35:57 2006 Return-Path: Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D41B016A4DE for ; Sun, 9 Jul 2006 12:35:57 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (mx0.hoeg.nl [83.98.131.211]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8C02F43D49 for ; Sun, 9 Jul 2006 12:35:57 +0000 (GMT) (envelope-from ed@hoeg.nl) Received: by palm.hoeg.nl (Postfix, from userid 1000) id 451E81734F; Sun, 9 Jul 2006 14:35:56 +0200 (CEST) Message-Id: <20060709123556.451E81734F@palm.hoeg.nl> Date: Sun, 9 Jul 2006 14:35:56 +0200 (CEST) From: Ed Schouten Reply-To: Ed Schouten To: FreeBSD-gnats-submit@freebsd.org Cc: Subject: [Patch] [make] Add -p flag X-Send-Pr-Version: 3.113 X-GNATS-Notify: >Number: 99960 >Category: standards >Synopsis: [Patch] make(1): Add -p flag >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-standards >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Jul 09 12:40:10 GMT 2006 >Closed-Date: Wed Jul 30 21:18:49 UTC 2008 >Last-Modified: Thu Jul 31 05:44:14 UTC 2008 >Originator: Ed Schouten >Release: FreeBSD 5.5-STABLE i386 >Organization: >Environment: System: FreeBSD palm.hoeg.nl 5.5-STABLE FreeBSD 5.5-STABLE #0: Mon May 29 10:55:24 CEST 2006 root@palm.hoeg.nl:/usr/obj/usr/src/sys/PALM i386 >Description: According to http://people.freebsd.org/~schweikh/posix-utilities.html, the only missing flag for the make(1) utility is -p. When make is run with -p, it only processes the input makefiles, but only dumps its processed contents. >How-To-Repeat: Run `make -p`. Illegal option... :-) >Fix: A patch is available at: http://g-rave.nl/junk/freebsd-make-graph-posix.diff When applied, the following commands allow you to rebuild make(1): $ cd /usr/src/usr.bin/make $ make -p > tmpMakefile $ make -f tmpMakefile all install clean $ rm tmpMakefile The -p switch just clones `-d g1` and skips processing. >Release-Note: >Audit-Trail: State-Changed-From-To: open->closed State-Changed-By: ed State-Changed-When: Wed Jul 30 21:18:48 UTC 2008 State-Changed-Why: Committed, with minor changes. Thanks! http://www.freebsd.org/cgi/query-pr.cgi?pr=99960 Date: Wed, 30 Jul 2008 21:18:57 +0000 (UTC) From: dfilter@FreeBSD.ORG (dfilter service) To: bug-followup@FreeBSD.org Subject: Re: standard/99960: commit references a PR ed 2008-07-30 21:18:38 UTC FreeBSD src repository Modified files: usr.bin/make main.c make.1 Log: SVN rev 181021 on 2008-07-30 21:18:38Z by ed Add POSIX -p flag to make(1). This article [1] describes the -p flag for make(1): Write to standard output the complete set of macro definitions and target descriptions. The output format is unspecified. We already support a similar flag (-d g1), but unlike -p, it still executes commands. Our implementation just turns it into -d g1, but also sets flag `printGraphOnly', which will cause make(1) to skip execution. [1] http://www.opengroup.org/onlinepubs/009695399/utilities/make.html Reviewed by: imp PR: standards/99960 Revision Changes Path 1.169 +9 -3 src/usr.bin/make/main.c 1.112 +10 -1 src/usr.bin/make/make.1 _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org" >Unformatted: