Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Jun 1996 09:09:30 -0500 (EST)
From:      John Fieber <jfieber@indiana.edu>
To:        Satoshi Asami <asami@cs.berkeley.edu>
Cc:        chuckr@Glue.umd.edu, jkh@time.cdrom.com, ports@freebsd.org
Subject:   Re: Request for feedback: REQUIRES_OS_VERSION feature.
Message-ID:  <Pine.NEB.3.93.960602090757.23200L-100000@Fieber-John.campusview.indiana.edu>
In-Reply-To: <199606020205.TAA25029@silvia.HIP.Berkeley.EDU>

next in thread | previous in thread | raw e-mail | index | archive | help
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 ================




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.93.960602090757.23200L-100000>