<commit_before>
all: check_lwt compiler library runtime examples tests

include Makefile.conf

.PHONY: compiler library runtime examples check_lwt

compiler:
	$(MAKE) -C compiler
library:
	$(MAKE) -C lib
runtime:
	$(MAKE) -C runtime
examples: compiler library
	$(MAKE) -C examples
tests: compiler library
ifeq ($(wildcard tests),tests)
	$(MAKE) -C tests
endif

LWTERROR="Js_of_ocaml requires Lwt version 2.2.1 at least.  Please upgrade."
check_lwt:
	@if ocamlfind query lwt -l | ocaml tools/check_version.ml 2.2.1; then \
	  echo $(LWTERROR); exit 1; \
	fi

install:
	ocamlfind install $(LIBRARY) lib/META lib/$(LIBNAME).cma lib/dll$(LIBNAME).so lib/*.cmi lib/*.mli lib/syntax/pa_js.cmo runtime/runtime.js
	install compiler/$(COMPILER) $(BINDIR)<commit_msg>Do not run tests by default<commit_after>
all: check_lwt compiler library runtime examples

include Makefile.conf

.PHONY: compiler library runtime examples check_lwt

compiler:
	$(MAKE) -C compiler
library:
	$(MAKE) -C lib
runtime:
	$(MAKE) -C runtime
examples: compiler library
	$(MAKE) -C examples
tests: compiler library
	$(MAKE) -C tests

LWTERROR="Js_of_ocaml requires Lwt version 2.2.1 at least.  Please upgrade."
check_lwt:
	@if ocamlfind query lwt -l | ocaml tools/check_version.ml 2.2.1; then \
	  echo $(LWTERROR); exit 1; \
	fi

install:
	ocamlfind install $(LIBRARY) lib/META lib/$(LIBNAME).cma lib/dll$(LIBNAME).so lib/*.cmi lib/*.mli lib/syntax/pa_js.cmo runtime/runtime.js
	install compiler/$(COMPILER) $(BINDIR)
{'fraction_non_alphanumeric': 0.12255892255892256, 'fraction_numerical': 0.009427609427609427, 'mean_word_length': 4.483394833948339, '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': '6280001', 'n_tokens_mistral': 557, 'n_tokens_neox': 533, 'n_words': 163}