From 59d215d38930214fc586a9a805706363b37f8e8c Mon Sep 17 00:00:00 2001 From: Maxim Baz Date: Tue, 19 Mar 2019 23:20:34 +0100 Subject: [PATCH] Makefile: keep version in a file --- .version | 1 + Makefile | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 .version diff --git a/.version b/.version new file mode 100644 index 0000000..4a36342 --- /dev/null +++ b/.version @@ -0,0 +1 @@ +3.0.0 diff --git a/Makefile b/Makefile index 6cd01cc..6fc9a62 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -VERSION ?= undefined +VERSION ?= $(shell cat .version) CLEAN_FILES := chromium firefox dist CHROME := $(shell which chromium 2>/dev/null || which chromium-browser 2>/dev/null || which chrome 2>/dev/null || which google-chrome 2>/dev/null || which google-chrome-stable 2>/dev/null)