On 7/25/25 5:34 PM, Gavin Smith wrote:
It appears from looking at maintain/generate_code_convert_data.pl that
there is quite a bit of code in the header file that is generated, included
but not limited to size of arrays. It may not be possible to stop generating
this file, or to include it in fewer places to limit the number of files
that depend upon it.
However, I wonder if there is some Makefile trick we could use; for example,
not updating the .h timestamp if the contents haven't changed.
I think the book "The Unix Programming Environment" had some tricks for
this. It's been a long time since I had to deal with this. But something
along the lines of the output going somewhere else. Then doing a diff
between the current version and the old one. If they differed, copy the
new to the old one. If it was updated, everything gets rebuilt. If not,
nothing happens.
Maybe. I'll have to look it up.
​