Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: pp only to create executable when source has changed

by hippo (Deacon)
on Dec 01, 2012 at 23:13 UTC ( #1006649=note: print w/ replies, xml ) Need Help??


in reply to pp only to create executable when source has changed

Is there a reason not to use make for this?


Comment on Re: pp only to create executable when source has changed
Re^2: pp only to create executable when source has changed
by gepebril69 (Beadle) on Dec 02, 2012 at 15:18 UTC

    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?

      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://1006649]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (12)
As of 2014-07-29 14:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (217 votes), past polls