How to check version of Make in FreeBSD

Chetan Shukla chetan.shukla at aricent.com
Sat Oct 2 06:15:12 UTC 2010


Thanks everyone for the guidance.
I got the VERSION number as 5200408120
Does it mean it has make-3.81?

Also could someone provide guidance on
How to run code(C C++) written for Linux/Solaris
On FreeBSD machine without changing Makefiles?

Thanks & Regards,
Chetan

-----Original Message-----
From: Dan Nelson [mailto:dnelson at allantgroup.com]
Sent: Saturday, October 02, 2010 11:33 AM
To: Paul B Mahol
Cc: Devin Teske; Chetan Shukla; freebsd-questions at freebsd.org
Subject: Re: How to check version of Make in FreeBSD

In the last episode (Oct 01), Paul B Mahol said:
> On 10/1/10, Devin Teske <dteske at vicor.com> wrote:
> > On 10/1/10, Chetan Shukla <chetan.shukla at 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 at allantgroup.com

"DISCLAIMER: This message is proprietary to Aricent and is intended solely for the use of the individual to whom it is addressed. It may contain privileged or confidential information and should not be circulated or used for any purpose other than for what it is intended. If you have received this message in error, please notify the originator immediately. If you are not the intended recipient, you are notified that you are strictly prohibited from using, copying, altering, or disclosing the contents of this message. Aricent accepts no responsibility for loss or damage arising from the use of the information transmitted by this email including damage from virus."


More information about the freebsd-questions mailing list