Search code examples
gitmakefileprojectdevelopment-environmentproject-structure

Makefile with absolute paths and Git


I have a C project with custom Makefile. Its first line is the path to the project directory. So every machine, that works with this project, has to change this path to its working directory, and naturally this leads to new undesirable commit, especially if you push data. Moreover there are several external SDK which require paths too.

What are your solutions?


Solution

  • Conditionally include an untracked makefile that sets the local paths (e.g. -include config.mak).