From owner-freebsd-ports Sun Jun 2 07:09:44 1996 Return-Path: owner-ports Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id HAA20280 for ports-outgoing; Sun, 2 Jun 1996 07:09:44 -0700 (PDT) Received: from Fieber-John.campusview.indiana.edu (Fieber-John.campusview.indiana.edu [149.159.1.34]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id HAA20275 for ; Sun, 2 Jun 1996 07:09:40 -0700 (PDT) Received: from localhost (jfieber@localhost) by Fieber-John.campusview.indiana.edu (8.7.5/8.7.3) with SMTP id JAA00573; Sun, 2 Jun 1996 09:09:31 -0500 (EST) X-Authentication-Warning: Fieber-John.campusview.indiana.edu: jfieber owned process doing -bs Date: Sun, 2 Jun 1996 09:09:30 -0500 (EST) From: John Fieber X-Sender: jfieber@Fieber-John.campusview.indiana.edu To: Satoshi Asami cc: chuckr@Glue.umd.edu, jkh@time.cdrom.com, ports@freebsd.org Subject: Re: Request for feedback: REQUIRES_OS_VERSION feature. In-Reply-To: <199606020205.TAA25029@silvia.HIP.Berkeley.EDU> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-ports@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Sat, 1 Jun 1996, Satoshi Asami wrote: > * I like this, but I wish that the OS_VERSION could be gotten from uname > * -r, instead of something set by bsd.port.mk. > > I wanted that too, but there is no way to make make define a new > variable or a new target based on the output from a command. Um, try this: --- cut here --- FOO!= uname -r all: @echo I a version ${FOO} --- cut here --- jfieber:/tmp $ make I a version 2.2-960501-SNAP -john == jfieber@indiana.edu =========================================== == http://fallout.campusview.indiana.edu/~jfieber ================