Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GNUmakefile: Check for .git/ and git before trying to run git
Only have make consider the rule and variable definitions using git if * the build happens in a git source tree and * git has been found or the user has explictly set GIT This prevents git from being run when it cannot succeed and thus avoids error messages at build time like fatal: not a git repository (or any parent up to mount point /) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). when building outside a git source tree or /bin/sh: describe: command not found when git is not in PATH. Fixes: #10
- Loading branch information