[PATCH] Generate/update a version.h header file.

Dirk Hohndel dirk at hohndel.org
Tue Feb 26 10:41:37 PST 2013


Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn at axis.com> writes:

> On Tue, 26 Feb 2013, Dirk Hohndel wrote:
>>
>> So what I really want is for the Makefile to create the version.h file
>> with the VERSION from the Makefile
>
> So, are you happy with the patch, after considering my comment:

It does create the version.h file. But the thing that failed for me in
my attempts appears to fail with this as well...

I add a #include "version.h" to gtk-gui.c

I commit something to git. It updates the version. But gtk-gui.o is not
rebuilt :-(

So I wonder if this is an issue with the version of make that I'm using...  
.dep/gtk-gui.o.dep clealy lists version.h and version.h is indeed newer
than gtk-gui.o

If I then do make -d to see what it considers it turns out that it never
considers whetner to rebuild gtk-gui.o based on version.h. So somehow
the new target breaks the dependency magic that Linus introduced.

And that's easily proven by running 'make subsurface' in which case it
does indeed rebuild gtk-gui.o and then subsurface...

/D


More information about the subsurface mailing list