mirror of
https://github.com/cc65/cc65.git
synced 2024-11-16 02:10:52 +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))
|
||||
endif
|
||||
|
||||
ifdef BUILD_ID
|
||||
$(info BUILD_ID: $(BUILD_ID))
|
||||
else
|
||||
ifndef BUILD_ID
|
||||
BUILD_ID := Git $(shell git rev-parse --short HEAD 2>$(NULLDEV) || svnversion 2>$(NULLDEV))
|
||||
ifneq ($(words $(BUILD_ID)),2)
|
||||
BUILD_ID := N/A
|
||||
$(info BUILD_ID: N/A)
|
||||
endif
|
||||
endif
|
||||
$(info BUILD_ID: $(BUILD_ID))
|
||||
|
||||
CFLAGS += -MMD -MP -O3 -I common \
|
||||
-Wall -Wextra -Wno-char-subscripts $(USER_CFLAGS) \
|
||||
|
Loading…
Reference in New Issue
Block a user