]> git.kaiwu.me - njs.git/commitdiff
Making build and test targets separate.
authorDmitry Volyntsev <xeioex@nginx.com>
Thu, 5 Oct 2017 15:22:56 +0000 (18:22 +0300)
committerDmitry Volyntsev <xeioex@nginx.com>
Thu, 5 Oct 2017 15:22:56 +0000 (18:22 +0300)
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.

Makefile
nxt/auto/editline

index 6e9dc54aaf80514e7712e97fa960107eb483e62b..6aac0e3cccafa67e009e9331800229d8c4ec50cf 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -76,7 +76,9 @@ $(NXT_BUILDDIR)/libnjs.a: \
 
 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
index 68ad9da7fa428ee68378104cb25353909302e726..4bc5d668828861e11271c3722d3b454b35ef309d 100644 (file)
@@ -43,7 +43,7 @@ else
 
     cat << END >> $NXT_MAKEFILE_CONF
 
-default:       all
+default:       libnjs
 END
 
 fi