sg has asked for the wisdom of the Perl Monks concerning the following question:
Starting with a c-header file, foo.h, that has the line:
I would like to update the time-stamp portion of the line by issuing the command:#define VERSION_STRING "Foo built Sun Dec 16 21:40:50 2007"
I can write a perl script that makes the update, and have the command "make version" end up calling that script. I am wondering if there a way to in-line perl in the Makefile to achieve the same end?make version
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Perl from within a makefile
by educated_foo (Vicar) on Dec 17, 2007 at 02:57 UTC | |
Re: Perl from within a makefile
by tachyon-II (Chaplain) on Dec 17, 2007 at 05:23 UTC |
Back to
Seekers of Perl Wisdom