[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Dependencies between "build" and "dist"
From: |
Rajesh Vaidheeswarran |
Subject: |
Re: Dependencies between "build" and "dist" |
Date: |
Mon, 06 Aug 2001 13:43:05 -0400 (EDT) |
The issue for Arun is that pkgmk in solaris creates a directory as its
final output. This is particularly irritating in the cons view of the world
since we expect file targets for dependency checking. I had a conversation
with Bob previously on this very same issue, and there was no good way to
make cons (make .. cons) depend on a directory (or create a directory as its
target.)
In a previous message, Steven Knight writes:
> 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 Conscrip
> t
> > 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
>
>
> _______________________________________________
> address@hidden
> http://mail.gnu.org/mailman/listinfo/cons-discuss
> Cons URL: http://www.dsmit.com/cons/