Welcome! Log In Create A New Profile

Advanced

[njs] Now a make command does not fail for obscure reason at

July 22, 2016 08:06AM
details: http://hg.nginx.org/njs/rev/f0c94dd2bdb3
branches:
changeset: 131:f0c94dd2bdb3
user: Igor Sysoev <igor@sysoev.ru>
date: Fri Jul 22 14:15:54 2016 +0300
description:
Now a make command does not fail for obscure reason at
the very start or after "make clean" command but it offers
to run the ./configure command instead. This change is
not compatible with BSD PMake which does not support both
"-include" and "sinclude" directives but only ".sinclude"
directive so GNU Make should be used.

diffstat:

Makefile | 10 ++++++++--
nxt/auto/configure | 7 +++++++
2 files changed, 15 insertions(+), 2 deletions(-)

diffs (44 lines):

diff -r eae6c48ff5c1 -r f0c94dd2bdb3 Makefile
--- a/Makefile Thu Jul 21 21:42:58 2016 +0300
+++ b/Makefile Fri Jul 22 14:15:54 2016 +0300
@@ -3,10 +3,16 @@ NJS_VER = 20150922

NXT_LIB = nxt

-include $(NXT_LIB)/Makefile.conf
+-include $(NXT_LIB)/Makefile.conf

NXT_BUILDDIR = build

+unconfigured:
+ @echo
+ @echo " Please run ./configure before make"
+ @echo
+
+main: $(NXT_BUILDDIR)/libnjs.a

$(NXT_BUILDDIR)/libnjs.a: \
$(NXT_BUILDDIR)/njscript.o \
@@ -81,7 +87,7 @@ test: \

clean:
rm -rf $(NXT_BUILDDIR)
- rm $(NXT_LIB)/Makefile.conf $(NXT_LIB)/nxt_auto_config.h
+ rm -f $(NXT_LIB)/Makefile.conf $(NXT_LIB)/nxt_auto_config.h

tarball:
make clean
diff -r eae6c48ff5c1 -r f0c94dd2bdb3 nxt/auto/configure
--- a/nxt/auto/configure Thu Jul 21 21:42:58 2016 +0300
+++ b/nxt/auto/configure Fri Jul 22 14:15:54 2016 +0300
@@ -55,3 +55,10 @@ END
. ${NXT_AUTO}memalign
. ${NXT_AUTO}getrandom
. ${NXT_AUTO}pcre
+
+
+cat << END >> $NXT_MAKEFILE_CONF
+
+target: main
+
+END

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[njs] Now a make command does not fail for obscure reason at

Igor Sysoev 755 July 22, 2016 08:06AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 160
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready