[jamming] Generated header files

Diane Holt holt.diane at gmail.com
Wed Jul 11 16:01:11 PDT 2007


I distinguish generated headers by including them in a var (called
NO_HDRGRIST, but I suppose GENHDR or some such would have been better :)
then exclude the files listed in that var from the NoCare (and from getting
gristed with HDRGRIST, which explains the name a bit :)

Diane

On 7/11/07, John Waugh <john.waugh at gmail.com> wrote:
>
> I have a rule that calls a script which generates some .h files, which are
> included by other .cpp files.
>
> This works fine for the most part, except when the .h files need to be
> generated freshly.
> Jam's header scanning applies NoCare to the headers, so if the .h files
> don't exist, jam doesn't cause them to be generated.
>
> Any way around this?
> There's no "UnNoCare" rule, I presume (:
>
> Of course I can also have some special target such as 'generate' which
> will just force the files to be created, but ideally a user would just have
> to build the main project, which will cause the headers to be generated as
> needed.
>
> Tips?
>
> -John
>
>
> _______________________________________________
> jamming mailing list  -  jamming at perforce.com
> http://maillist.perforce.com/mailman/listinfo/jamming
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://maillist.perforce.com/pipermail/jamming/attachments/20070711/fe9d1fd6/attachment.html


More information about the jamming mailing list