[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Dependencies between "build" and "dist"
From: |
Steven Knight |
Subject: |
Re: Dependencies between "build" and "dist" |
Date: |
Mon, 6 Aug 2001 10:30:13 -0500 (CDT) |
On Mon, 6 Aug 2001, Kumar, Arun (PIT) wrote:
> I have a question for Cons experts. This is specifically related to
> Solaris build. How can one specify in src/dist/Conscript (the dist Conscript
> file), a dependency such that the "pkgmk" only is done when something in
> build area is built. In other words, pkgmk in the dist area always happens
> whether it is needed or not. Let me know if any specific details of the
> command is needed.
If Cons is executing a command every time you run it, and that's not
what you want, the most likely cause is that the executed command does
not create the target file specified. As a trivial example:
$env->Command('.always', 'input', "cat input > output");
Will *always* run the "cat input > outfile" command because the .always
file is never created by it. Take a look at the target file specified
for your "pkgmk" call.
Beyond that general advice, additional details would help.
--SK