From 98d96f9c1cc8403d5e74a44ee7845f24981e8358 Mon Sep 17 00:00:00 2001 From: Michael Theall Date: Wed, 15 Jun 2016 02:44:49 -0500 Subject: [PATCH] Add git revision to version --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) 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: