aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-12-29 23:43:09 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-12-29 23:43:09 +0530
commit26d49a16b34f39402d3ec31af9a2c5de54030e47 (patch)
treed6edae6e635eae4a4da169f517899e7e6e66a6ab /Makefile
parentf90c37cd5e1860e6fd29aa7a767923dcd74039cc (diff)
downloadnnn-26d49a16b34f39402d3ec31af9a2c5de54030e47.tar.gz
Get version string from source
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 77005a3..f44963b 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-include VERSION.mk
+VERSION = $(shell grep -m1 VERSION $(SRC) | cut -f 2 -d'"')
PREFIX ?= /usr/local
MANPREFIX ?= $(PREFIX)/share/man
@@ -57,7 +57,7 @@ CFLAGS += $(CFLAGS_CURSES)
LDLIBS += $(LDLIBS_CURSES)
-DISTFILES = src nnn.1 Makefile README.md LICENSE VERSION.mk
+DISTFILES = src nnn.1 Makefile README.md LICENSE
SRC = src/nnn.c
HEADERS = src/nnn.h
BIN = nnn