Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Perl from within a makefile

by tachyon-II (Chaplain)
on Dec 17, 2007 at 05:23 UTC ( [id://657371]=note: print w/replies, xml ) Need Help??


in reply to Perl from within a makefile

You can execute anything you can do in the shell in your makefile so you can just insert a one liner. Note that quoting conventions differ on Win32 and *nix so this is not entirely portable.

#define VERSION_STRING "Foo built Sun Dec 16 21:40:50 2007" version: perl -pi.old -e 's/(VERSION_STRING[\w\s\"]+built )[^\"]+/$$1.local +time/e' Makefile

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://657371]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2024-04-25 10:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found