<commit_before>.PHONY: build check js build-cov cov
TESTEXEC=_obuild/bulletml_tests/bulletml_tests.asm
LIBDIR:=bulletml
SRC:=$(shell cd $(LIBDIR); ocamlfind ocamldep -sort -package js_of_ocaml.syntax -syntax camlp4o *.ml)
MLI=$(shell cd $(LIBDIR); ocamlfind ocamldep -sort -package js_of_ocaml.syntax -syntax camlp4o *.mli)

# remove from SRC files that are already there as a .mli
ML_OF_MLI=$(patsubst %.mli,%.ml,$(MLI))
SRC:=$(filter-out $(ML_OF_MLI),$(SRC))

lib:_obuild/bulletml

_obuild/bulletml:
	ocp-build bulletml

build:
	ocp-build build bulletml bulletml_tests bulletml_run app

clean : 
	ocp-build clean

check: build
	./$(TESTEXEC)

js: build
	js_of_ocaml _obuild/app/app.byte

%.mli:bulletml/%.ml 
	cp bulletml/$@ . 2>/dev/null ||  \
	ocamlfind ocamlc *.mli -package bulletml,js_of_ocaml.syntax -syntax camlp4o -c -i  $< > $@ || (rm $@; exit 1)


install: lib uninstall
	ocp-build install bulletml
	cp _obuild/bulletml/*.cmi `ocamlfind query bulletml`


uninstall:
	ocp-build uninstall bulletml
	ocamlfind remove bulletml


doc :  install
	mkdir -p tmp
	for i in $(SRC); do \<commit_msg>don't pass project name to ocp-build<commit_after>.PHONY: build check js build-cov cov
TESTEXEC=_obuild/bulletml_tests/bulletml_tests.asm
LIBDIR:=bulletml
SRC:=$(shell cd $(LIBDIR); ocamlfind ocamldep -sort -package js_of_ocaml.syntax -syntax camlp4o *.ml)
MLI=$(shell cd $(LIBDIR); ocamlfind ocamldep -sort -package js_of_ocaml.syntax -syntax camlp4o *.mli)

# remove from SRC files that are already there as a .mli
ML_OF_MLI=$(patsubst %.mli,%.ml,$(MLI))
SRC:=$(filter-out $(ML_OF_MLI),$(SRC))

lib:_obuild/bulletml

_obuild/bulletml:
	ocp-build bulletml

build:
	ocp-build build bulletml bulletml_tests bulletml_run app

clean : 
	ocp-build clean

check: build
	./$(TESTEXEC)

js: build
	js_of_ocaml _obuild/app/app.byte

%.mli:bulletml/%.ml 
	cp bulletml/$@ . 2>/dev/null ||  \
	ocamlfind ocamlc *.mli -package bulletml,js_of_ocaml.syntax -syntax camlp4o -c -i  $< > $@ || (rm $@; exit 1)


install: lib uninstall
	ocp-build install bulletml
	cp _obuild/bulletml/*.cmi `ocamlfind query bulletml`


uninstall:
	ocp-build uninstall
	ocamlfind remove bulletml


doc :  install
	mkdir -p tmp
	for i in $(SRC); do \
{'fraction_non_alphanumeric': 0.12827461607949414, 'fraction_numerical': 0.004516711833785004, 'mean_word_length': 4.37621359223301, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '1382261', 'n_tokens_mistral': 907, 'n_tokens_neox': 866, 'n_words': 224}