Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Oct 2010 01:02:41 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Paul B Mahol <onemda@gmail.com>
Cc:        Chetan Shukla <chetan.shukla@aricent.com>, Devin Teske <dteske@vicor.com>, "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: How to check version of Make in FreeBSD
Message-ID:  <20101002060241.GF40148@dan.emsphone.com>
In-Reply-To: <AANLkTinHLLaEmQLPK8yWkfC_P_JpbkmH6xCuTE6XZh58@mail.gmail.com>
References:  <DF735188ED91BD458FA0E0C17929339F954A8F32@GUREXMB01.ASIAN.AD.ARICENT.COM> <AANLkTinzFT-EMNZrhccvObE%2BmWMQkJ917xsijUzHGfSP@mail.gmail.com> <1285967910.14091.81.camel@localhost.localdomain> <AANLkTinHLLaEmQLPK8yWkfC_P_JpbkmH6xCuTE6XZh58@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Oct 01), Paul B Mahol said:
> On 10/1/10, Devin Teske <dteske@vicor.com> wrote:
> > On 10/1/10, Chetan Shukla <chetan.shukla@aricent.com> wrote:
> >> > I need to check the version of Make installed in FreeBSD.  make -v
> >> > does not help here.
> >> >  What is the similar command in FreeBSD ?
> >>
> >> On Fri, 2010-10-01 at 18:33 +0000, Paul B Mahol wrote:
> >> gmake. On serious side there is no way to find version and freebsd make
> >> havent changed much in years...
> >
> > On the command-line...
> >
> >    strings `which make` | grep -B1 MAKE_VERSION
> >
> > Or in a makefile...
> >
> >    /usr/tmp/Makefile:
> >    all:
> >    	@echo "MAKE_VERSION='$(MAKE_VERSION)'"
> >
> >    make
> >    MAKE_VERSION='5200408120'
> 
> Nice.

Even nicer:

make -V MAKE_VERSION

Not that the version really helps; there have been many additions to make
since 2004.

-- 
	Dan Nelson
	dnelson@allantgroup.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20101002060241.GF40148>