summaryrefslogtreecommitdiffstats
path: root/share/mk/version.mk
blob: af3c0cb2af5e676d0b9a43f77f300736dc25bd64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
########################################################################
# Copyright 2022, Alejandro Colomar <alx@kernel.org>
# SPDX-License-Identifier: GPL-3.0-or-later
########################################################################


ifndef MAKEFILE_VERSION_INCLUDED
MAKEFILE_VERSION_INCLUDED := 1


include $(MAKEFILEDIR)/cmd.mk
include $(MAKEFILEDIR)/verbose.mk


DISTNAME    := $(shell $(GIT) describe $(HIDE_ERR))
DISTVERSION := $(patsubst man-pages-%,%,$(DISTNAME))
DISTDATE    := $(shell $(GIT) log -1 --format='%aD')


endif  # include guard