Re: How to use Command
Timothee Besset <[email protected]> Thu, 23 Jan 2003 09:24:53 +0100
| Newsgroups | gmane.comp.gnu.cons.general |
|---|---|
| Message-ID | <[email protected]> |
Well you can write some perl code which generates the complete list of dependencies for you? Run the loop, feed it through ->Depends() ? (if I remember correctly) TTimo On Thu, 23 Jan 2003 08:50:04 +0100 "BUFFERNE,VINCENT (HP-France,ex1)" <[email protected]> wrote: > Hi All, > > I am using cons to build my software. During my build I produce a shar file > with: > > $local_env->Command("foo", qq ( > shar $script_dir > %> > ) > ); > > This shar hundreds of files. I do not want to maintain such a huge list of > dependencies; it is why I have removed dependencies in "Command". > But if I modify one of the file that I want to shar, Cons will not detect > the change (as their is no dependencies) and will retrieve the shar file > from its cache. > > I have found a workaround using a dummy file that I "touch" when I want to > force the production of a new shar file: > > $local_env->Command("foo", "dummy_file" ,qq ( > shar $script_dir > %> > ) > ); > > But I not really happy with it. Do you have any suggestions ??? > > Vincent > > > _______________________________________________ > [email protected] > http://mail.gnu.org/mailman/listinfo/cons-discuss > Cons URL: http://www.dsmit.com/cons/ > _______________________________________________ [email protected] http://mail.gnu.org/mailman/listinfo/cons-discuss Cons URL: http://www.dsmit.com/cons/