]> rtime.felk.cvut.cz Git - notmuch.git/commit
build: check .git directory existence in srcdir (for out-of-tree builds)
authorTomi Ollila <tomi.ollila@iki.fi>
Tue, 6 May 2014 19:35:28 +0000 (22:35 +0300)
committerDavid Bremner <david@tethera.net>
Wed, 9 Jul 2014 23:24:28 +0000 (20:24 -0300)
commit6721222ea8e3e8c0de15c5ae6f3ae0e388676c2a
tree863987c977e93decc8ed3a866c8b6a30cfb33519
parent934e333a08e7f0ef24a3f139dd3d8738d28f1bd5
build: check .git directory existence in srcdir (for out-of-tree builds)

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.
Makefile.local