Changeset
37adbd4c8036 breaks build with bmake by introducing Gnu constructs.
Instead, make CLI compilation dependent on libedit by conditionally extending
the default target.
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 \
NXT_EDITLINE_CFLAGS = $nxt_feature_incs
NXT_EDITLINE_LIB = $nxt_feature_libs
+
+default: njs
END
else