From 454ee61e2656bd7db363ab5af0e559ef555cbd9f Mon Sep 17 00:00:00 2001 From: Maciek Borzecki Date: Sun, 18 Jan 2015 21:34:50 +0100 Subject: [PATCH] Makefile: use REV if set in git-source-dist target --- Makefile.am | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index 0d08959..007cbee 100644 --- a/Makefile.am +++ b/Makefile.am @@ -80,9 +80,11 @@ do_desktop_subst = sed -e 's,[@]bindir[@],${bindir},g' mconnect.desktop: mconnect.desktop.in $(do_desktop_subst) < $< > $@ +REV ?= HEAD + git-source-dist: - gitsha=`git rev-list HEAD -1`; \ - git archive --prefix=mconnect-$${gitsha}/ HEAD | \ + gitsha=`git rev-list $(REV) -1`; \ + git archive --prefix=mconnect-$${gitsha}/ $(REV) | \ gzip -c > mconnect-$${gitsha}.tar.gz BUILT_SOURCES = mconn-crypt.vapi mconn-crypt.gi mconnect.desktop