fix: allow Makefile to work on Windows (#11015)
This commit is contained in:
parent
6ba3b1e91e
commit
5c98cb2aad
10
Makefile
10
Makefile
|
|
@ -1,5 +1,11 @@
|
|||
next_version := $(shell cat build_version.txt)
|
||||
tag := $(shell git describe --exact-match --tags 2>git_describe_error.tmp; rm -f git_describe_error.tmp)
|
||||
ifeq ($(OS),Windows_NT)
|
||||
next_version := $(shell type build_version.txt)
|
||||
tag := $(shell git describe --exact-match --tags 2> nul)
|
||||
else
|
||||
next_version := $(shell cat build_version.txt)
|
||||
tag := $(shell git describe --exact-match --tags 2>/dev/null)
|
||||
endif
|
||||
|
||||
branch := $(shell git rev-parse --abbrev-ref HEAD)
|
||||
commit := $(shell git rev-parse --short=8 HEAD)
|
||||
glibc_version := 2.17
|
||||
|
|
|
|||
Loading…
Reference in New Issue