Makefile: remove -DVERSION="unknown"

This is handled by the #ifndef in main.c
This commit is contained in:
Eyal Sawady 2020-12-11 14:19:50 -05:00
parent 584ddb3654
commit a663003bc5
No known key found for this signature in database
GPG Key ID: 604D3459E53A9952
1 changed files with 2 additions and 2 deletions

View File

@ -2,8 +2,8 @@
all:
$(CC) -o among-sus $(CFLAGS) \
$$(git rev-parse --short HEAD >/dev/null 2>/dev/null && \
printf -- '-DVERSION="%s"' "$$(git rev-parse --short HEAD)" || \
printf -- '-DVERSION="unknown"') main.c $(LDFLAGS)
printf -- '-DVERSION="%s"' "$$(git rev-parse --short HEAD)") \
main.c $(LDFLAGS)
clean:
rm -f among-sus