[njs] Compiling CLI by default if libedit is available.

Dmitry Volyntsev xeioex at nginx.com
Thu Aug 31 15:38:49 UTC 2017


details:   http://hg.nginx.org/njs/rev/37adbd4c8036
branches:  
changeset: 401:37adbd4c8036
user:      Dmitry Volyntsev <xeioex at nginx.com>
date:      Thu Aug 31 18:38:34 2017 +0300
description:
Compiling CLI by default if libedit is available.

diffstat:

 Makefile |  6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diffs (16 lines):

diff -r 82dc332cb4c8 -r 37adbd4c8036 Makefile
--- a/Makefile	Tue Aug 29 14:06:23 2017 +0300
+++ b/Makefile	Thu Aug 31 18:38:34 2017 +0300
@@ -7,6 +7,12 @@ NXT_LIB =	nxt
 
 NXT_BUILDDIR =	build
 
+ifneq ($(NXT_EDITLINE_LIB),)
+default: $(NXT_BUILDDIR)/libnjs.a $(NXT_BUILDDIR)/njs
+else
+default: $(NXT_BUILDDIR)/libnjs.a
+endif
+
 $(NXT_BUILDDIR)/libnjs.a: \
 	$(NXT_LIB)/nxt_auto_config.h \
 	$(NXT_BUILDDIR)/njscript.o \


More information about the nginx-devel mailing list