I want to write a unix/linux program, that will use a configuration file.
My problem is, where should I put the location of the file?
I could "hardcode" the location (like /etc
) into the program itself.
However, I would like it, if the user without privileges could install it (through make) somewhere else, like ~
.
Should the makefile edit the source code? Or is it usually done in a different way?