<commit_before>
.PHONY: all clean build configure distclean doc apidoc gen test-env build-with-oasis

PLEASE=ocaml tools/please.ml

all: build

_oasis: tools/_oasis.in tools/please.ml
	$(PLEASE) make _oasis

setup.data: _oasis
	oasis setup -setup-update dynamic

configure: setup.data
	ocaml setup.ml -configure --enable-all $(EN) && \
	echo 'Configured'

# This call also generates "_build/FINDLIB_PACKAGES"
_build/VERSION:
	$(PLEASE) generate metadata

OCAMLBUILD_ANNOYING_LINKS=main.byte main.native Workflow_Examples.native integration.native dummy_plugin_user.native
OWN_BINARIES= ketrew-test ketrew ketrew-pure ketrew-workflow-examples-test ketrew-integration-test

# Files "_build/VERSION" and "_build/FINDLIB_PACKAGES" are imported as strings into 
# Ketrew via ppx_blob during compilation.
build-with-oasis: _build/VERSION
	ocaml setup.ml -build && \
	    rm -f $(OCAMLBUILD_ANNOYING_LINKS) && \
	    cp _build/src/app/main.native ketrew && \
	    cp _build/src/test/main.native ketrew-test && \
	    cp _build/src/test/Workflow_Examples.native ketrew-workflow-examples-test && \
	    cp _build/src/test/integration.native ketrew-integration-test && \
            echo "Done"

_build/client.js: _build/src/client-joo/main.byte
	js_of_ocaml +weak.js +toplevel.js  _build/src/client-joo/main.byte -o $@

build: build-with-oasis _build/client.js


doc:
	./tools/build-documentation.sh

test-env:
	. ./tools/test_environment.env   ; \
             set_test_additional_findlib_plugin ; \
             ssl_cert_key ; test_config_file; test_environment

clean:
	rm -fr _build $(OWN_BINARIES)<commit_msg>Fix `Makefile`<commit_after>
.PHONY: all clean build configure distclean doc apidoc gen test-env build-with-oasis

PLEASE=ocaml tools/please.ml

all: build

_oasis: tools/_oasis.in tools/please.ml
	$(PLEASE) make _oasis

setup.data: _oasis
	oasis setup -setup-update dynamic

configure: setup.data
	ocaml setup.ml -configure --enable-all $(EN) && \
	echo 'Configured'

# This call also generates "_build/FINDLIB_PACKAGES"
_build/VERSION:
	$(PLEASE) generate metadata

OCAMLBUILD_ANNOYING_LINKS=main.byte main.native Workflow_Examples.native integration.native dummy_plugin_user.native
OWN_BINARIES= ketrew-test ketrew ketrew-pure ketrew-workflow-examples-test ketrew-integration-test

# Files "_build/VERSION" and "_build/FINDLIB_PACKAGES" are imported as strings into 
# Ketrew via ppx_blob during compilation.
build-with-oasis: _build/VERSION
	ocaml setup.ml -build && \
	    rm -f $(OCAMLBUILD_ANNOYING_LINKS) && \
	    cp _build/src/app/main.native ketrew && \
	    cp _build/src/test/main.native ketrew-test && \
	    cp _build/src/test/Workflow_Examples.native ketrew-workflow-examples-test && \
	    cp _build/src/test/integration.native ketrew-integration-test && \
            echo "Done"

_build/client.js:
	js_of_ocaml +weak.js +toplevel.js  _build/src/client-joo/main.byte -o $@

build: build-with-oasis _build/client.js


doc:
	./tools/build-documentation.sh

test-env:
	. ./tools/test_environment.env   ; \
             set_test_additional_findlib_plugin ; \
             ssl_cert_key ; test_config_file; test_environment

clean:
	rm -fr _build $(OWN_BINARIES)
{'fraction_non_alphanumeric': 0.10726643598615918, 'fraction_numerical': 0.0, 'mean_word_length': 3.789156626506024, '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': '4831079', 'n_tokens_mistral': 1174, 'n_tokens_neox': 1096, 'n_words': 231}