NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/37822: make's IMPSRC should be better documented

The following reply was made to PR bin/37822; it has been noted by GNATS.

From: Quentin Garnier <>
Subject: Re: bin/37822: make's IMPSRC should be better documented
Date: Sun, 10 Aug 2008 21:33:37 +0200

 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 On Sun, Jan 20, 2008 at 03:40:00PM +0000, wrote:
 > >Number:         37822
 > >Category:       bin
 > >Synopsis:       IMPSRC should be better documented
 > >Confidential:   no
 > >Severity:       serious
 > >Priority:       medium
 > >Responsible:    bin-bug-people
 > >State:          open
 > >Class:          doc-bug
 > >Submitter-Id:   net
 > >Arrival-Date:   Sun Jan 20 15:40:00 +0000 2008
 > >Originator:
 > >Release:        NetBSD 4.0_STABLE
 > >Organization:
 > >Environment:
 > System: NetBSD 4.0_STABLE NetBSD 4.0_STABLE (GENERIC) =
 #2: Tue Dec 25 17:42:38 EET 2007
 ch/i386/compile/GENERIC i386
 > Architecture: i386
 > Machine: i386
 > >Description:
 > May be I missed something but the following Makefile
 > doesn't work as it is documented.=20
 > man make says
 >              .IMPSRC The name/path of the source from which the target
 >                        is to be transformed (the ``implied'' source);
 >                        also known as `<'.
 > .IMPSRC is expanded to the empty string.
 > Something important is missed in the documentation.
 What's missing from the documentation is the meaning of "implied" here.
 This variable is for implicit rules.
 =2ESUFFIXES: .bar
        echo ${.IMPSRC}
 touch; make will print
 =2EIMPSRC doesn't make sense in any other context because you can have
 more than a unique dependency in explicit rules, which is why you are
 supposed to use .ALLSRC in that context.
 I think just adding "For implicit rules (see special target .SUFFIXES);
 the name/path ...".  And then of course add a bit of documentation in
 Quentin Garnier - -
 "See the look on my face from staying too long in one place
 [...] every time the morning breaks I know I'm closer to falling"
 KT Tunstall, Saving My Face, Drastic Fantastic, 2007.
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 Version: GnuPG v1.4.9 (NetBSD)

Home | Main Index | Thread Index | Old Index