This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Why does Makefile depend on version.c?


> Does anyone know why we have this:
> 
>   Makefile: $(srcdir)/Makefile.in config.status $(srcdir)/version.c \
> 
> in gcc/Makefile?  The same goes for:
> 
>   config.status: $(srcdir)/configure $(srcdir)/config.gcc version.c
> 
> It's hard for me to see why changing the version number requires these
> things to be rebuilt.

At one point, the version number was moved around through -D options
or something similar.  You can see remnants of that here:

./Makefile.in:  mainversion=`grep version_string $(srcdir)/version.c | sed -e 's/.*\"\([0-9]*\.[0-9]*\).*/\1/'` 
./ada/Makefile.in:      #mainversion=`sed -e 's/.*\"\([0-9]*\.[0-9]*\).*/\1/' < $(srcdir)/version.c` 

Also, gcc_version_trigger is set through configure.

It looks as if enough has been moved away from that to get rid of the
remnants now, at least in the gcc subdirectory.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]