My app reads some text files at runtime. The problem is where to find them.
In my project, we agreed to rather not define own environment variables.
But then, it's hard to know at runtime where the files are because that
changes with a "make install".
I kind of solved this by letting the Makefile generate a header file that
contains string variables with path information. The Makefile writes the
values into that header file. The only downside is that most sources have
to be recompiled for a "make install", because the header file changes with
updated values like "/usr/local/..." instead of "/home/...".
It's not really a good solution. How would you do that?
Thanks!