[PATCH] build: check .git directory existence in srcdir (for out-of-tree builds)

David Bremner david at tethera.net
Sat Jul 5 05:11:29 PDT 2014


Tomi Ollila <tomi.ollila at iki.fi> writes:

> So that $(VERSION) and version.stamp uses the git-describe -based
> version data instead of the content of `version' file.
>
> For consistency also the git commands in Makefile[.local] target
> `verify-no-dirty-code' uses the git --git-dir=$srcdir/.git ...
> commands (inside ifeq($(IS_GIT),yes)). Attempting to make this
> target outside of the tree will fail in any case.

This seems to work OK; I wondered if an alternate method of setting (and
exporting) GIT_DIR from the top level makefile would work as well, and
be less intrusive?

d


More information about the notmuch mailing list