]> git.kaiwu.me - njs.git/commitdiff
Fixed default makefile target is libedit is unavailable.
authorDmitry Volyntsev <xeioex@nginx.com>
Thu, 5 Oct 2017 12:50:16 +0000 (15:50 +0300)
committerDmitry Volyntsev <xeioex@nginx.com>
Thu, 5 Oct 2017 12:50:16 +0000 (15:50 +0300)
Previously, if libedit was unavailable, any extra target which could be
added by feature scripts became the first and default target. It breaks
builds without arguments.

Adding the default target in this case to ensure that the proper target
is always selected.

nxt/auto/editline

index 55947e199a4bb0fea8251ff4703676a62efbb72b..101693a6d780528705969813444d4fbaafdd8763 100644 (file)
@@ -39,4 +39,9 @@ END
 else
     $nxt_echo " - building interactive shell is not possible"
 
+    cat << END >> $NXT_MAKEFILE_CONF
+
+default:       all
+END
+
 fi