Add git revision to version

This commit is contained in:
Michael Theall 2016-06-15 02:44:49 -05:00
parent 2d970d66e4
commit 98d96f9c1c

View File

@ -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: