I have created a project using KDevelop and now I'm trying to figure out how to get the compiler to create a configuration script for the program to use on the 'make install' command

Is there an easy way to do this? I was thinking of having the program create the script when it is first run and storing it in a location that the user specifies but how would I go about storing this location so that the program can find it in the future?