]> git.notmuchmail.org Git - notmuch/blobdiff - Makefile.local
emacs: allow functions in notmuch-show-stash-mlarchive-link-alist
[notmuch] / Makefile.local
index 086b5a115f8b0a6e42af327f6c5e385c811cd6fe..fa07d81bb097701f20122f9470cae3681d1b7339 100644 (file)
@@ -21,7 +21,7 @@ endif
 VERSION:=$(shell cat ${srcdir}/version)
 ifeq ($(filter release release-message pre-release update-versions,$(MAKECMDGOALS)),)
 ifeq ($(IS_GIT),yes)
-VERSION:=$(shell git describe --match '[0-9.]*'|sed -e s/_/~/ -e s/-/+/ -e s/-/~/)
+VERSION:=$(shell git describe --abbrev=7 --match '[0-9.]*'|sed -e s/_/~/ -e s/-/+/ -e s/-/~/)
 # Write the file 'version.stamp' in case its contents differ from $(VERSION)
 FILE_VERSION:=$(shell test -f version.stamp && read vs < version.stamp || vs=; echo $$vs)
 ifneq ($(FILE_VERSION),$(VERSION))