Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: pp only to create executable when source has changed

by gepebril69 (Beadle)
on Dec 02, 2012 at 15:18 UTC ( #1006726=note: print w/ replies, xml ) Need Help??


in reply to Re: pp only to create executable when source has changed
in thread pp only to create executable when source has changed

Thx for the help

I'm not sure what you mean by this, I'm creating multiple executables. Every executable is doing it's own task and its started on a regular basis by the Windows taskmanager. Although the scripts are several hundred lines of code it takes easily 45 minutes to build the corresponding executable. I created a batch script to create all executables, what I like to see that it only creates new executables if the related source .pl file has changed

Is that possible with make? Does it record the creation date of the source?


Comment on Re^2: pp only to create executable when source has changed
Re^3: pp only to create executable when source has changed
by Athanasius (Monsignor) on Dec 03, 2012 at 03:56 UTC
    Is that possible with make?

    Yes. From Make_(software)#Behavior:

    Make is typically used to build executable programs and libraries from source code. Generally though, any process that involves transforming a source file to a target result (by executing arbitrary commands) is applicable to Make.
    Does it record the creation date of the source?

    No, it doesn’t need to:

    Make decides whether a target needs to be regenerated by comparing file modification times. This solves the problem of avoiding the building of files which are already up to date... (idem)

    You can build GNU Make for various platforms, including Windows.

    Hope that helps,

    Athanasius <°(((><contra mundum

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (12)
As of 2014-10-01 13:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (20 votes), past polls