Files
ayaerc/mk/gitver.mk
2026-02-08 16:30:31 -05:00

9 lines
197 B
Makefile

_GITVER_SH= if git rev-parse --short HEAD >/dev/null 2>&1; then \
printf "."; \
git rev-parse --short HEAD; \
else \
echo ""; \
fi
_GITVER:= $(shell ${_GITVER_SH})
GITVER= ${_GITVER}