mirror of
https://github.com/DarkMatterCore/nxdumptool.git
synced 2024-11-22 02:06:41 +00:00
Update Makefile
This commit is contained in:
parent
9cdbbf096b
commit
3356bfa89c
1 changed files with 10 additions and 2 deletions
12
Makefile
12
Makefile
|
@ -43,14 +43,22 @@ include $(DEVKITPRO)/libnx/switch_rules
|
|||
|
||||
ROOTDIR ?= $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
|
||||
|
||||
GIT_BRANCH := $(shell git rev-parse --abbrev-ref HEAD)
|
||||
GIT_COMMIT := $(shell git rev-parse --short HEAD)
|
||||
GIT_BRANCH := $(strip $(shell git rev-parse --abbrev-ref HEAD 2>/dev/null))
|
||||
GIT_COMMIT := $(strip $(shell git rev-parse --short HEAD 2>/dev/null))
|
||||
GIT_REV := ${GIT_BRANCH}-${GIT_COMMIT}
|
||||
|
||||
ifneq (,$(strip $(shell git status --porcelain 2>/dev/null)))
|
||||
GIT_REV := $(GIT_REV)-dirty
|
||||
endif
|
||||
|
||||
ifeq (,$(GIT_BRANCH))
|
||||
$(error GIT_BRANCH is empty)
|
||||
endif
|
||||
|
||||
ifeq (,$(GIT_COMMIT))
|
||||
$(error GIT_COMMIT is empty)
|
||||
endif
|
||||
|
||||
VERSION_MAJOR := 2
|
||||
VERSION_MINOR := 0
|
||||
VERSION_MICRO := 0
|
||||
|
|
Loading…
Reference in a new issue