1
0
Fork 0
mirror of https://github.com/DarkMatterCore/nxdumptool.git synced 2024-11-09 12:11:44 +00:00

Update Makefile

This commit is contained in:
Pablo Curiel 2024-05-01 20:24:41 +02:00
parent 9cdbbf096b
commit 3356bfa89c

View file

@ -43,14 +43,22 @@ include $(DEVKITPRO)/libnx/switch_rules
ROOTDIR ?= $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST)))) ROOTDIR ?= $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
GIT_BRANCH := $(shell git rev-parse --abbrev-ref HEAD) GIT_BRANCH := $(strip $(shell git rev-parse --abbrev-ref HEAD 2>/dev/null))
GIT_COMMIT := $(shell git rev-parse --short HEAD) GIT_COMMIT := $(strip $(shell git rev-parse --short HEAD 2>/dev/null))
GIT_REV := ${GIT_BRANCH}-${GIT_COMMIT} GIT_REV := ${GIT_BRANCH}-${GIT_COMMIT}
ifneq (,$(strip $(shell git status --porcelain 2>/dev/null))) ifneq (,$(strip $(shell git status --porcelain 2>/dev/null)))
GIT_REV := $(GIT_REV)-dirty GIT_REV := $(GIT_REV)-dirty
endif endif
ifeq (,$(GIT_BRANCH))
$(error GIT_BRANCH is empty)
endif
ifeq (,$(GIT_COMMIT))
$(error GIT_COMMIT is empty)
endif
VERSION_MAJOR := 2 VERSION_MAJOR := 2
VERSION_MINOR := 0 VERSION_MINOR := 0
VERSION_MICRO := 0 VERSION_MICRO := 0