On 09/25/2013 08:00 AM, Werner LEMBERG wrote:
What's the recommended solution to such a problem, except adding
dependencies for all .c files which directly or indirectly include
`foo.h' (which is both inconvenient and error prone)?
Hi Werner,
I use line below in one of my project for similar thing
BUILT_SOURCES = $(builddir)/svn_revision.h
That should ensure that 'svn_revision.h' is created before any
compilation starts. I have a non-recursive Makefile so not sure how it
works in recursive context.
Cheers,
Peter