diff --git a/Makefile b/Makefile index 6b4b8aa..fd06ed6 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,12 @@ .PHONY: all 3dsx cia clean linux +export GITREV := $(shell git rev-parse HEAD 2>/dev/null | cut -c1-8) export VERSION := 2.2 +ifneq ($(strip $(GITREV)),) +export VERSION := $(VERSION)-$(GITREV) +endif + all: 3dsx 3dsx: