<commit_before>
NJS_VER =	20150922

NXT_LIB =	nxt

-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 \
	$(NXT_BUILDDIR)/njs_vm.o \
	$(NXT_BUILDDIR)/njs_boolean.o \
	$(NXT_BUILDDIR)/njs_number.o \
	$(NXT_BUILDDIR)/njs_string.o \
	$(NXT_BUILDDIR)/njs_object.o \
	$(NXT_BUILDDIR)/njs_array.o \
	$(NXT_BUILDDIR)/njs_function.o \
	$(NXT_BUILDDIR)/njs_regexp.o \
	$(NXT_BUILDDIR)/njs_date.o \
	$(NXT_BUILDDIR)/njs_math.o \
	$(NXT_BUILDDIR)/njs_extern.o \
	$(NXT_BUILDDIR)/njs_variable.o \
	$(NXT_BUILDDIR)/njs_builtin.o \
	$(NXT_BUILDDIR)/njs_lexer.o \
	$(NXT_BUILDDIR)/njs_lexer_keyword.o \
	$(NXT_BUILDDIR)/njs_nonrecursive_parser.o \
	$(NXT_BUILDDIR)/njs_parser.o \
	$(NXT_BUILDDIR)/njs_parser_expression.o \
	$(NXT_BUILDDIR)/njs_generator.o \
	$(NXT_BUILDDIR)/njs_disassembler.o \
	$(NXT_BUILDDIR)/nxt_djb_hash.o \
	$(NXT_BUILDDIR)/nxt_utf8.o \
	$(NXT_BUILDDIR)/nxt_array.o \
	$(NXT_BUILDDIR)/nxt_rbtree.o \
	$(NXT_BUILDDIR)/nxt_lvlhsh.o \
	$(NXT_BUILDDIR)/nxt_random.o \
	$(NXT_BUILDDIR)/nxt_pcre.o \
	$(NXT_BUILDDIR)/nxt_malloc.o \
	$(NXT_BUILDDIR)/nxt_mem_cache_pool.o \

	ar -r -c $(NXT_BUILDDIR)/libnjs.a \
		$(NXT_BUILDDIR)/njscript.o \
		$(NXT_BUILDDIR)/njs_vm.o \
		$(NXT_BUILDDIR)/njs_boolean.o \
		$(NXT_BUILDDIR)/njs_number.o \
		$(NXT_BUILDDIR)/njs_string.o \
		$(NXT_BUILDDIR)/njs_object.o \
		$(NXT_BUILDDIR)/njs_array.o \
		$(NXT_BUILDDIR)/njs_function.o \
		$(NXT_BUILDDIR)/njs_regexp.o \
		$(NXT_BUILDDIR)/njs_date.o \
		$(NXT_BUILDDIR)/njs_math.o \
		$(NXT_BUILDDIR)/njs_extern.o \
		$(NXT_BUILDDIR)/njs_variable.o \
		$(NXT_BUILDDIR)/njs_builtin.o \
		$(NXT_BUILDDIR)/njs_lexer.o \
		$(NXT_BUILDDIR)/njs_lexer_keyword.o \
		$(NXT_BUILDDIR)/njs_nonrecursive_parser.o \
		$(NXT_BUILDDIR)/njs_parser.o \
		$(NXT_BUILDDIR)/njs_parser_expression.o \
		$(NXT_BUILDDIR)/njs_generator.o \
		$(NXT_BUILDDIR)/njs_disassembler.o \
		$(NXT_BUILDDIR)/nxt_djb_hash.o \
		$(NXT_BUILDDIR)/nxt_utf8.o \
		$(NXT_BUILDDIR)/nxt_array.o \
		$(NXT_BUILDDIR)/nxt_rbtree.o \
		$(NXT_BUILDDIR)/nxt_lvlhsh.o \
		$(NXT_BUILDDIR)/nxt_random.o \
		$(NXT_BUILDDIR)/nxt_pcre.o \
		$(NXT_BUILDDIR)/nxt_malloc.o \
		$(NXT_BUILDDIR)/nxt_mem_cache_pool.o \

all:	test lib_test

test:	\
	$(NXT_BUILDDIR)/njs_unit_test \

	$(NXT_BUILDDIR)/njs_unit_test d

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

tarball:
	make clean
	mkdir njs-$(NJS_VER)
	cp -rp configure Makefile LICENSE README $(NXT_LIB) njs nginx \
		njs-$(NJS_VER)
	tar czf njs-$(NJS_VER).tar.gz njs-$(NJS_VER)
	rm -rf njs-$(NJS_VER)

$(NXT_BUILDDIR)/njscript.o: \
	$(NXT_BUILDDIR)/libnxt.a \
	njs/njs_vm.h \
	njs/njs_string.h \
	njs/njs_object.h \
	njs/njs_function.h \
	njs/njs_parser.h \
	njs/njscript.h \
	njs/njscript.c \

	$(NXT_CC) -c -o $(NXT_BUILDDIR)/njscript.o $(NXT_CFLAGS) \
		-I$(NXT_LIB) -Injs \
		njs/njscript.c

$(NXT_BUILDDIR)/njs_vm.o: \
	$(NXT_BUILDDIR)/libnxt.a \
	njs/njscript.h \
	njs/njs_vm.h \
	njs/njs_number.h \
	njs/njs_string.h \
	njs/njs_object.h \
	njs/njs_object_hash.h \
	njs/njs_array.h \
	njs/njs_function.h \<commit_msg>A dist target in Makefile.<commit_after>
NJS_VER =	0.1.0

NXT_LIB =	nxt

-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 \
	$(NXT_BUILDDIR)/njs_vm.o \
	$(NXT_BUILDDIR)/njs_boolean.o \
	$(NXT_BUILDDIR)/njs_number.o \
	$(NXT_BUILDDIR)/njs_string.o \
	$(NXT_BUILDDIR)/njs_object.o \
	$(NXT_BUILDDIR)/njs_array.o \
	$(NXT_BUILDDIR)/njs_function.o \
	$(NXT_BUILDDIR)/njs_regexp.o \
	$(NXT_BUILDDIR)/njs_date.o \
	$(NXT_BUILDDIR)/njs_math.o \
	$(NXT_BUILDDIR)/njs_extern.o \
	$(NXT_BUILDDIR)/njs_variable.o \
	$(NXT_BUILDDIR)/njs_builtin.o \
	$(NXT_BUILDDIR)/njs_lexer.o \
	$(NXT_BUILDDIR)/njs_lexer_keyword.o \
	$(NXT_BUILDDIR)/njs_nonrecursive_parser.o \
	$(NXT_BUILDDIR)/njs_parser.o \
	$(NXT_BUILDDIR)/njs_parser_expression.o \
	$(NXT_BUILDDIR)/njs_generator.o \
	$(NXT_BUILDDIR)/njs_disassembler.o \
	$(NXT_BUILDDIR)/nxt_djb_hash.o \
	$(NXT_BUILDDIR)/nxt_utf8.o \
	$(NXT_BUILDDIR)/nxt_array.o \
	$(NXT_BUILDDIR)/nxt_rbtree.o \
	$(NXT_BUILDDIR)/nxt_lvlhsh.o \
	$(NXT_BUILDDIR)/nxt_random.o \
	$(NXT_BUILDDIR)/nxt_pcre.o \
	$(NXT_BUILDDIR)/nxt_malloc.o \
	$(NXT_BUILDDIR)/nxt_mem_cache_pool.o \

	ar -r -c $(NXT_BUILDDIR)/libnjs.a \
		$(NXT_BUILDDIR)/njscript.o \
		$(NXT_BUILDDIR)/njs_vm.o \
		$(NXT_BUILDDIR)/njs_boolean.o \
		$(NXT_BUILDDIR)/njs_number.o \
		$(NXT_BUILDDIR)/njs_string.o \
		$(NXT_BUILDDIR)/njs_object.o \
		$(NXT_BUILDDIR)/njs_array.o \
		$(NXT_BUILDDIR)/njs_function.o \
		$(NXT_BUILDDIR)/njs_regexp.o \
		$(NXT_BUILDDIR)/njs_date.o \
		$(NXT_BUILDDIR)/njs_math.o \
		$(NXT_BUILDDIR)/njs_extern.o \
		$(NXT_BUILDDIR)/njs_variable.o \
		$(NXT_BUILDDIR)/njs_builtin.o \
		$(NXT_BUILDDIR)/njs_lexer.o \
		$(NXT_BUILDDIR)/njs_lexer_keyword.o \
		$(NXT_BUILDDIR)/njs_nonrecursive_parser.o \
		$(NXT_BUILDDIR)/njs_parser.o \
		$(NXT_BUILDDIR)/njs_parser_expression.o \
		$(NXT_BUILDDIR)/njs_generator.o \
		$(NXT_BUILDDIR)/njs_disassembler.o \
		$(NXT_BUILDDIR)/nxt_djb_hash.o \
		$(NXT_BUILDDIR)/nxt_utf8.o \
		$(NXT_BUILDDIR)/nxt_array.o \
		$(NXT_BUILDDIR)/nxt_rbtree.o \
		$(NXT_BUILDDIR)/nxt_lvlhsh.o \
		$(NXT_BUILDDIR)/nxt_random.o \
		$(NXT_BUILDDIR)/nxt_pcre.o \
		$(NXT_BUILDDIR)/nxt_malloc.o \
		$(NXT_BUILDDIR)/nxt_mem_cache_pool.o \

all:	test lib_test

test:	\
	$(NXT_BUILDDIR)/njs_unit_test \

	$(NXT_BUILDDIR)/njs_unit_test d

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

dist:
	make clean
	mkdir njs-$(NJS_VER)
	cp -rp configure Makefile LICENSE README $(NXT_LIB) njs nginx \
		njs-$(NJS_VER)
	tar czf njs-$(NJS_VER).tar.gz njs-$(NJS_VER)
	rm -rf njs-$(NJS_VER)

$(NXT_BUILDDIR)/njscript.o: \
	$(NXT_BUILDDIR)/libnxt.a \
	njs/njs_vm.h \
	njs/njs_string.h \
	njs/njs_object.h \
	njs/njs_function.h \
	njs/njs_parser.h \
	njs/njscript.h \
	njs/njscript.c \

	$(NXT_CC) -c -o $(NXT_BUILDDIR)/njscript.o $(NXT_CFLAGS) \
		-I$(NXT_LIB) -Injs \
		njs/njscript.c

$(NXT_BUILDDIR)/njs_vm.o: \
	$(NXT_BUILDDIR)/libnxt.a \
	njs/njscript.h \
	njs/njs_vm.h \
	njs/njs_number.h \
	njs/njs_string.h \
	njs/njs_object.h \
	njs/njs_object_hash.h \
	njs/njs_array.h \
	njs/njs_function.h \
{'fraction_non_alphanumeric': 0.1717171717171717, 'fraction_numerical': 0.002331002331002331, 'mean_word_length': 3.8318318318318316, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3758896', 'n_tokens_mistral': 3358, 'n_tokens_neox': 3543, 'n_words': 302}