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