From: Dmitry Volyntsev Date: Thu, 5 Oct 2017 15:22:56 +0000 (+0300) Subject: Making build and test targets separate. X-Git-Tag: 0.1.14~2 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=3c6d51d0b41754419303657b0ba84b393c397f61;p=njs.git Making build and test targets separate. 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. --- diff --git a/Makefile b/Makefile index 6e9dc54a..6aac0e3c 100644 --- 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 diff --git a/nxt/auto/editline b/nxt/auto/editline index 68ad9da7..4bc5d668 100644 --- a/nxt/auto/editline +++ b/nxt/auto/editline @@ -43,7 +43,7 @@ else cat << END >> $NXT_MAKEFILE_CONF -default: all +default: libnjs END fi