Re: But WHY are you "Re-executing" yourself, you fucking wanker?!!

[prev] [thread] [next] [lurker] [Date index for 2006/11/20]

From: Yossi Kreinin
Subject: Re: But WHY are you "Re-executing" yourself, you fucking wanker?!!
Date: 08:13 on 20 Nov 2006
Guy Thornley wrote:
>>I need to support (GASP) *auto-generated* source files. Auto-generated 
>>*header* files are NOT AN OPTION: the bloody wanker will fail while 
>>generating dependencies of a not-yet-generated file - NO WAY to explain it 
> 
> 
>>From gcc(1) manpage:
> 
>        -MG In conjunction with an option such as -M requesting dependency
>            generation, -MG assumes missing header files are generated files
>            and adds them to the dependency list without raising an error.

That's a nice kludge, except it won't notice dependencies caused by #includes in 
the generated file. I use the following headers to work around the problem:

  //my_header.h
  #ifdef _DEP_UPDATE //this is only set when gcc -M runs
  #include "whatever_generated_header_will_include.h"
  #else
  #include "gen_dir/my_header.h"
  #endif

A small pile of crap of this kind at least ensures that when 
"whatever_generated_header_will_include.h" changes, things are properly rebuilt. 
Of course I could use gcc -MG -include whatever_generated_header_will_include.h, 
but pre-inclusion is too poisonous a cure.

> 
> While hating make is often well-founded, perhaps you should be hating your
> in-house scripts and programs instead?

I hate them. I just don't hate them instead. I hate them together.
> 
> Especially if they write errors to stdout instead of stderr - that surely is
> an entire class of hate all of its own.

They write errors to stderr. $(shell) doesn't seem to care though.
> 
> .Guy
> 
> 


-- 
The fastest way to be done with dinner is to NOT clean the kitchen.

If you don't, a mess builds up. To make dinner you have to work through
the dirty pans, cutting off the dried on spaghetti, and melting the
hardened peanut butter. But eventually you will eat dinner.

And STILL the fastest way to be done with dinner is to NOT clean the kitchen.

There's stuff above here

Generated at 16:01 on 20 Nov 2006 by mariachi 0.52