help-make
[Top][All Lists]
Advanced

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

using output of perl script in make file


From: Ashish Raikwar
Subject: using output of perl script in make file
Date: Thu, 25 Oct 2007 12:09:57 +0530

Hi All,
I have a perl script "version.pl" whose output i want to use in makefile. I tried to use shell function. but nothing is done..

"Makefile" and perl script "version.pl" are in same directory..
what i am trying to do is.....


RELEASE_TAG_VALUE=$(shell perl ./version.pl -v)
BUILD_DATE_VALUE=$(shell date -u +"%A-%b-%d-%Y-%H:%M:%S")

and then i am using above variables in following line.

$(CPP) -DRELEASE_TAG=\"$(RELEASE_TAG_VALUE)\" -DBUILD_DATE=\"$(BUILD_DATE_VALUE)\"  -P $(DB_XSD_CPP_DEFINES) $<   address@hidden

for your information...
--> variable BUILD_DATE_VALUE got assigned by right value and is working fine

your help will be greatly appreciated.

Thanks and Regards
Ashish Raikwar


reply via email to

[Prev in Thread] Current Thread [Next in Thread]