mirror of
https://github.com/g4klx/MMDVM.git
synced 2026-04-04 14:08:33 +00:00
Make Makefile compatible with builds on Windows
This commit is contained in:
parent
8b31a53e4e
commit
1d6ca99df9
1 changed files with 6 additions and 0 deletions
6
Makefile
6
Makefile
|
|
@ -188,8 +188,14 @@ endif
|
|||
|
||||
# Export the current git version if the index file exists, else 000...
|
||||
GitVersion.h:
|
||||
ifdef SYSTEMROOT
|
||||
echo #define GITVERSION "0000000" > $@
|
||||
else ifdef SystemRoot
|
||||
echo #define GITVERSION "0000000" > $@
|
||||
else
|
||||
ifneq ("$(wildcard .git/index)","")
|
||||
echo "#define GITVERSION \"$(shell git rev-parse --short HEAD)\"" > $@
|
||||
else
|
||||
echo "#define GITVERSION \"0000000\"" > $@
|
||||
endif
|
||||
endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue