From 030d053aac1ed1e4d6820f5193c1912840df313c Mon Sep 17 00:00:00 2001 From: Maciek Borzecki Date: Sun, 18 Jan 2015 19:35:49 +0100 Subject: [PATCH] Makefile: git-source-dist for preparing source dist --- Makefile.am | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile.am b/Makefile.am index dcf0f73..1c51a47 100644 --- a/Makefile.am +++ b/Makefile.am @@ -58,6 +58,11 @@ do_desktop_subst = sed -e 's,[@]bindir[@],${bindir},g' mconnect.desktop: mconnect.desktop.in $(do_desktop_subst) < $< > $@ +git-source-dist: + gitsha=`git rev-list HEAD -1`; \ + git archive --prefix=mconnect-$${gitsha}/ HEAD | \ + gzip -c > mconnect-$${gitsha}.tar.gz + BUILT_SOURCES = mconn-crypt.vapi mconn-crypt.gi mconnect.desktop CLEANFILES = $(BUILT_SOURCES)