mirror of https://github.com/markqvist/MMDVM.git
Add GitVersion.h to Makefile
parent
8a245e7313
commit
b4bef6e7c3
8
Makefile
8
Makefile
|
@ -171,3 +171,11 @@ endif
|
||||||
ifneq ($(wildcard /opt/openocd/bin/openocd),)
|
ifneq ($(wildcard /opt/openocd/bin/openocd),)
|
||||||
/opt/openocd/bin/openocd -f /opt/openocd/share/openocd/scripts/board/stm32f4discovery.cfg -c "program bin/$(BINELF) verify reset exit"
|
/opt/openocd/bin/openocd -f /opt/openocd/share/openocd/scripts/board/stm32f4discovery.cfg -c "program bin/$(BINELF) verify reset exit"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# Export the current git version if the index file exists, else 000...
|
||||||
|
GitVersion.h:
|
||||||
|
ifneq ("$(wildcard .git/index)","")
|
||||||
|
echo "const char *gitversion = \"$(shell git rev-parse HEAD)\";" > $@
|
||||||
|
else
|
||||||
|
echo "const char *gitversion = \"0000000000000000000000000000000000000000\";" > $@
|
||||||
|
endif
|
||||||
|
|
Loading…
Reference in New Issue