summaryrefslogtreecommitdiffhomepage
path: root/auto/make
diff options
context:
space:
mode:
Diffstat (limited to 'auto/make')
-rw-r--r--auto/make3
1 files changed, 2 insertions, 1 deletions
diff --git a/auto/make b/auto/make
index f0241e5e..b077912d 100644
--- a/auto/make
+++ b/auto/make
@@ -234,13 +234,14 @@ ${NXT_DAEMON}-uninstall:
END
+nxt_version=`grep NXT_VERSION src/nxt_main.h | sed -e 's/.*"\(.*\)".*/\1/'`
# Makefile.
# *.dSYM is MacOSX Clang debug information.
cat << END > Makefile
-NXT_VERSION = 0.3
+NXT_VERSION = $nxt_version
include $NXT_MAKEFILE