cons-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Dependencies between "build" and "dist"


From: Woolley, Robert
Subject: RE: Dependencies between "build" and "dist"
Date: Mon, 6 Aug 2001 14:56:49 -0400

My use of cons is mostly "Cargo-Cult" programming, so maybe someone can
correct me if I am wrong.

Isn't there a trivial workaround here of having  a script that echoes a
dummy target file, and runs pkgmk as a side effect.



-----Original Message-----
From: Rajesh Vaidheeswarran [mailto:address@hidden
Sent: Monday, August 06, 2001 1:43 PM
To: Steven Knight
Cc: Kumar, Arun (PIT); 'address@hidden'
Subject: Re: Dependencies between "build" and "dist"


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/

_______________________________________________
address@hidden
http://mail.gnu.org/mailman/listinfo/cons-discuss
Cons URL: http://www.dsmit.com/cons/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]