From fbe785adeaab76ca0c13bd1af9d69831951a9c57 Mon Sep 17 00:00:00 2001 From: Sitaram Chamarty Date: Fri, 14 May 2010 11:26:31 +0530 Subject: [PATCH] Makefile: now default is as simple as "make" plus copies tar file to /tmp just for convenience --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 7780900..1108b82 100644 --- a/Makefile +++ b/Makefile @@ -6,6 +6,10 @@ # Note: I'm not sure if that "-r" is a GNU tar extension... +branch := $(shell git rev-parse --abbrev-ref HEAD) + +$(branch): $(branch).tar + .GITOLITE-VERSION: @touch conf/VERSION @@ -14,3 +18,4 @@ git archive $* > $@ tar -r -f $@ conf/VERSION rm conf/VERSION + cp -v $@ /tmp