mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-25 01:57:47 +01:00
simplify makefile
This commit is contained in:
parent
0a4f8a7c7c
commit
19ad4bb235
12
Makefile
12
Makefile
@ -11,15 +11,9 @@ BRANCH := $(shell git rev-parse --abbrev-ref HEAD || echo UNKNOWN)
|
|||||||
CMDTEST := $(shell echo \"\")
|
CMDTEST := $(shell echo \"\")
|
||||||
ifeq ($(CMDTEST),\"\")
|
ifeq ($(CMDTEST),\"\")
|
||||||
# Windows
|
# Windows
|
||||||
CMDTEST := $(shell echo "\#")
|
HASH := \#
|
||||||
ifeq ($(CMDTEST),"\#")
|
ECOMMIT := $(shell echo $(HASH)define GIT_COMMIT "$(COMMIT)" > inc/git.h)
|
||||||
# gmake
|
EBRANCH := $(shell echo $(HASH)define GIT_BRANCH "$(BRANCH)" >> inc/git.h)
|
||||||
ECOMMIT := $(shell echo \#define GIT_COMMIT "$(COMMIT)" > inc/git.h)
|
|
||||||
EBRANCH := $(shell echo \#define GIT_BRANCH "$(BRANCH)" >> inc/git.h)
|
|
||||||
else
|
|
||||||
ECOMMIT := $(shell echo #define GIT_COMMIT "$(COMMIT)" > inc/git.h)
|
|
||||||
EBRANCH := $(shell echo #define GIT_BRANCH "$(BRANCH)" >> inc/git.h)
|
|
||||||
endif
|
|
||||||
else
|
else
|
||||||
# Either *nix or Windows with BusyBox (e.g. w64devkit)
|
# Either *nix or Windows with BusyBox (e.g. w64devkit)
|
||||||
ECOMMIT := $(shell echo "#define GIT_COMMIT" \"$(COMMIT)\" > inc/git.h)
|
ECOMMIT := $(shell echo "#define GIT_COMMIT" \"$(COMMIT)\" > inc/git.h)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user