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.
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 \
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
. ${NXT_AUTO}memalign
. ${NXT_AUTO}getrandom
. ${NXT_AUTO}pcre
+
+
+cat << END >> $NXT_MAKEFILE_CONF
+
+target: main
+
+END