From 9898a01d3b32cbd5624e307447b97daffcf260fe Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Thu, 8 Nov 2018 01:27:36 -0800 Subject: [PATCH] Add current branch to make dist zip name --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c10b6eb7a..7eeab49b6 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,7 @@ TOPTARGETS := all clean dist -AMSREV := $(shell git rev-parse --short HEAD) +AMSBRANCH := $(shell git symbolic-ref --short HEAD) +AMSREV := $(AMSBRANCH)-$(shell git rev-parse --short HEAD) + ifneq (, $(strip $(shell git status --porcelain 2>/dev/null))) AMSREV := $(AMSREV)-dirty endif