From 3c6d51d0b41754419303657b0ba84b393c397f61 Mon Sep 17 00:00:00 2001 From: Dmitry Volyntsev Date: Thu, 5 Oct 2017 18:22:56 +0300 Subject: [PATCH] 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. --- Makefile | 4 +++- nxt/auto/editline | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) 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 -- 2.47.3