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 d909193a..60cbfe97 100644
--- a/auto/make
+++ b/auto/make
@@ -224,7 +224,8 @@ ${NXT_DAEMON}-uninstall:
END
-nxt_version=`grep -m 1 NXT_VERSION src/nxt_main.h | sed -e 's/.*"\(.*\)".*/\1/'`
+nxt_version=`grep 'define NXT_VERSION' src/nxt_main.h \
+ | sed -e 's/.*"\(.*\)".*/\1/'`
# Makefile.
# *.dSYM is MacOSX Clang debug information.