mirror of
https://github.com/cc65/cc65.git
synced 2025-01-12 17:30:50 +00:00
src/Makefile: Simplify BUILD_ID logic.
This commit is contained in:
parent
9be25dab9c
commit
2f3955dbc7
@ -52,15 +52,13 @@ ifdef USER_CFLAGS
|
|||||||
$(info USER_CFLAGS: $(USER_CFLAGS))
|
$(info USER_CFLAGS: $(USER_CFLAGS))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifdef BUILD_ID
|
ifndef BUILD_ID
|
||||||
$(info BUILD_ID: $(BUILD_ID))
|
|
||||||
else
|
|
||||||
BUILD_ID := Git $(shell git rev-parse --short HEAD 2>$(NULLDEV) || svnversion 2>$(NULLDEV))
|
BUILD_ID := Git $(shell git rev-parse --short HEAD 2>$(NULLDEV) || svnversion 2>$(NULLDEV))
|
||||||
ifneq ($(words $(BUILD_ID)),2)
|
ifneq ($(words $(BUILD_ID)),2)
|
||||||
BUILD_ID := N/A
|
BUILD_ID := N/A
|
||||||
$(info BUILD_ID: N/A)
|
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
$(info BUILD_ID: $(BUILD_ID))
|
||||||
|
|
||||||
CFLAGS += -MMD -MP -O3 -I common \
|
CFLAGS += -MMD -MP -O3 -I common \
|
||||||
-Wall -Wextra -Wno-char-subscripts $(USER_CFLAGS) \
|
-Wall -Wextra -Wno-char-subscripts $(USER_CFLAGS) \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user