aboutsummaryrefslogtreecommitdiff
path: root/mk/gitver.mk
blob: 62cae5a45fdbd409b9725673a08f7d42b244bf14 (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:=	$(shell ${_GITVER_SH})
GITVER=		${_GITVER}