From 7a92eb888794819a339babd0ee220b6aa3993db1 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Fri, 5 Dec 2014 11:55:16 -0600 Subject: rename git.mk to gitver.mk This is a more descriptive name since this file only sets the gitver variable. --- Makefile | 2 +- mk/git.mk | 8 -------- mk/gitver.mk | 8 ++++++++ src/rc/Makefile | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) delete mode 100644 mk/git.mk create mode 100644 mk/gitver.mk diff --git a/Makefile b/Makefile index 119a27e7..6e9198cb 100644 --- a/Makefile +++ b/Makefile @@ -22,7 +22,7 @@ include ${MK}/sys.mk include ${MK}/os.mk include ${MK}/subdir.mk include ${MK}/dist.mk -include ${MK}/git.mk +include ${MK}/gitver.mk _installafter: ifeq (${MKPREFIX},yes) diff --git a/mk/git.mk b/mk/git.mk deleted file mode 100644 index 62cae5a4..00000000 --- a/mk/git.mk +++ /dev/null @@ -1,8 +0,0 @@ -_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} diff --git a/mk/gitver.mk b/mk/gitver.mk new file mode 100644 index 00000000..62cae5a4 --- /dev/null +++ b/mk/gitver.mk @@ -0,0 +1,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} diff --git a/src/rc/Makefile b/src/rc/Makefile index bd8b942c..d2b2ac5f 100644 --- a/src/rc/Makefile +++ b/src/rc/Makefile @@ -42,7 +42,7 @@ LDADD+= -lutil -lrc -leinfo include ../../Makefile.inc MK= ../../mk include ${MK}/prog.mk -include ${MK}/git.mk +include ${MK}/gitver.mk include ${MK}/cc.mk include ${MK}/termcap.mk -- cgit v1.2.3