summaryrefslogtreecommitdiffhomepage
path: root/pkg/Makefile
diff options
context:
space:
mode:
authorAlexander Borisov <alexander.borisov@nginx.com>2019-02-22 16:31:44 +0300
committerAlexander Borisov <alexander.borisov@nginx.com>2019-02-22 16:31:44 +0300
commit608e09e9def182756e2f1650c6f3416b209fbf58 (patch)
treeb56e435fd0cb36dc2233ee0b843f13f2fcfa9ff1 /pkg/Makefile
parentc96b2baca50fe2f5c17f96406e6d741e88267921 (diff)
downloadunit-608e09e9def182756e2f1650c6f3416b209fbf58.tar.gz
unit-608e09e9def182756e2f1650c6f3416b209fbf58.tar.bz2
Improvement and unification of version processing in build scripts.
This also eliminates expressions that incompatible with BSD make, thus fixing installation of Node.js module on FreeBSD (broken by dace60fc4926).
Diffstat (limited to '')
-rw-r--r--pkg/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/Makefile b/pkg/Makefile
index 6001a034..7926606d 100644
--- a/pkg/Makefile
+++ b/pkg/Makefile
@@ -1,8 +1,8 @@
#!/usr/bin/make
-VERSION ?= $(shell grep 'define NXT_VERSION' ../src/nxt_main.h \
- | sed -e 's/^.*"\(.*\)".*/\1/')
+include ../version
+VERSION ?= $(NXT_VERSION)
RELEASE ?= 1
default: