summaryrefslogtreecommitdiff
path: root/mk/git.mk
blob: 54a98ef47d123d1e530ba54cba8cb578191b0802 (plain)
1
2
3
4
5
6
7
8
_GITVER_SH=	if git rev-parse --short HEAD >/dev/null 2>&1; then \
			printf "."; \
			git rev-parse --short HEAD; \
		else \
			echo ""; \
		fi
_GITVER!=	${_GITVER_SH}
GITVER=		${_GITVER}$(shell ${_GITVER_SH})