Hi, in a project in the office we store the list of files in a variable and use automatic dependency generation.
I generate the name of the dependency file for the sources from the basename of the files and prepend a different directory. This way "some/where/on/disk/main.c" becomes "dependencies/main.d". If somebody now copies main.c into a/different/dir and changes the entry in the variable in the Makefile to "a/different/dir/make.c", still the name of the dependency file is "dependencies/main.d". This file then does not get remade and gets included and contains the old information, so the wrong file gets compiled. Of course i can tell the users to delete the dependency file when they move a source file, but i'd like to have a more bullet-proof way. Can anybody give me a hint on this? Thanks for any hints, Torsten. _______________________________________________ Help-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-make
