Previously, if libedit was unavailable the default action was to build
libnjs and run tests. However, if it was available the default action
was just building binaries.
This patch makes the two high-level targets which are intended to be
invoked externally. The default one for building all available binaries
and the test target for running all available tests.
all: test lib_test
-njs: $(NXT_BUILDDIR)/njs
+njs: $(NXT_BUILDDIR)/njs
+
+libnjs: $(NXT_BUILDDIR)/libnjs.a
njs_interactive_test: njs_expect_test $(NXT_BUILDDIR)/njs_interactive_test
$(NXT_BUILDDIR)/njs_interactive_test
cat << END >> $NXT_MAKEFILE_CONF
-default: all
+default: libnjs
END
fi