Make Makefile slightly more readable
This commit is contained in:
parent
6ff83c2761
commit
e69c479dd5
5
Makefile
5
Makefile
|
@ -1,6 +1,9 @@
|
||||||
.POSIX:
|
.POSIX:
|
||||||
all:
|
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)
|
$(CC) -o among-sus $(CFLAGS) \
|
||||||
|
$$(git rev-parse --short HEAD &>/dev/null && \
|
||||||
|
printf -- '-DVERSION="%s"' "$$(git rev-parse --short HEAD)" || \
|
||||||
|
printf -- '-DVERSION="unknown"') main.c $(LDFLAGS)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f among-sus
|
rm -f among-sus
|
||||||
|
|
Loading…
Reference in New Issue