<commit_before>OCAMLINCLUDES = \
	$(ROOT)/ocaml \
	$(ROOT)/ocaml/autogen \
	$(ROOT)/ocaml/idl \
	$(ROOT)/ocaml/idl/ocaml_backend \
	$(ROOT)/ocaml/network \
	$(ROOT)/ocaml/util \
	$(ROOT)/ocaml/xapi \
	$(ROOT)/ocaml/xenops \
	interface
# ocaml/xapi only needed for xapi_fist : should move xapi_first to libs
OCAMLPACKS = oclock xml-light2 stunnel http-svr xenctrl xenctrlext xenstore
OCAML_LIBS = $(ROOT)/ocaml/fhs ../idl/ocaml_backend/xapi_client
# ../xenops/xenops_client

UseCamlp4(rpc-light.syntax, rrdd_server)

RRDD = xcp-rrdd
RRDD_FILES = \
	../pool_role_shared \
	../network/network_interface \
	../network/network_monitor \
	../util/config_shared \
	../util/stats \
	../xapi/xapi_fist \
	../xenops/device_number \
	interface/ds \
	interface/data_source \
	interface/rrd \
	interface/rrdd_common \
	interface/rrdd_fake_common \
	interface/rrdd_interface \
	interface/monitor_types \
	rrdd_fake \
	rrdd_shared \
	rrdd_ha_stats \
	rrdd_http_handler \
	rrdd_server \
	rrdd_monitor \
	rrdd_stats \
	rrdd_main
RRDD_TEST = rrdd_test
RRDD_TEST_FILES = \
	interface/rrd \
	interface/rrdd_interface \
	interface/data_source \
	rrdd_test

.SUBDIRS: interface

OCamlProgram($(RRDD), $(RRDD_FILES))
OCamlDocProgram($(RRDD), $(RRDD_FILES))
OCamlLibrary(rrd_client, $(RRD_CLIENT_OBJS))
OCamlProgram($(RRDD_TEST), $(RRDD_TEST_FILES))

.PHONY: install
install:
	mkdir -p $(DESTDIR)$(LIBEXECDIR)
	$(IPROG) $(RRDD) $(DESTDIR)$(LIBEXECDIR)

META: META.in
	sed 's/@VERSION@/$(PRODUCT_VERSION)/g' < $< > $@

if $(defined-env DESTDIR)
	INSTALL_PATH = $(DESTDIR)/$(shell ocamlfind printconf destdir)
	export
else
	INSTALL_PATH = $(shell ocamlfind printconf destdir)<commit_msg>[fix] Fixing rrd-client compilation (a var was forgotten while merging)<commit_after>OCAMLINCLUDES = \
	$(ROOT)/ocaml \
	$(ROOT)/ocaml/autogen \
	$(ROOT)/ocaml/idl \
	$(ROOT)/ocaml/idl/ocaml_backend \
	$(ROOT)/ocaml/network \
	$(ROOT)/ocaml/util \
	$(ROOT)/ocaml/xapi \
	$(ROOT)/ocaml/xenops \
	interface
# ocaml/xapi only needed for xapi_fist : should move xapi_first to libs
OCAMLPACKS = oclock xml-light2 stunnel http-svr xenctrl xenctrlext xenstore
OCAML_LIBS = $(ROOT)/ocaml/fhs ../idl/ocaml_backend/xapi_client
# ../xenops/xenops_client

UseCamlp4(rpc-light.syntax, rrdd_server)

RRDD = xcp-rrdd
RRDD_FILES = \
	../pool_role_shared \
	../network/network_interface \
	../network/network_monitor \
	../util/config_shared \
	../util/stats \
	../xapi/xapi_fist \
	../xenops/device_number \
	interface/ds \
	interface/data_source \
	interface/rrd \
	interface/rrdd_common \
	interface/rrdd_fake_common \
	interface/rrdd_interface \
	interface/monitor_types \
	rrdd_fake \
	rrdd_shared \
	rrdd_ha_stats \
	rrdd_http_handler \
	rrdd_server \
	rrdd_monitor \
	rrdd_stats \
	rrdd_main
RRDD_TEST = rrdd_test
RRDD_TEST_FILES = \
	interface/rrd \
	interface/rrdd_interface \
	interface/data_source \
	rrdd_test

RRD_CLIENT_OBJS = \
	interface/rrd \
	interface/rrdd_interface \
	interface/ds \
	interface/data_source \
	rrdd_shared

.SUBDIRS: interface

OCamlProgram($(RRDD), $(RRDD_FILES))
OCamlDocProgram($(RRDD), $(RRDD_FILES))
OCamlLibrary(rrd_client, $(RRD_CLIENT_OBJS))
OCamlProgram($(RRDD_TEST), $(RRDD_TEST_FILES))

.PHONY: install
install:
	mkdir -p $(DESTDIR)$(LIBEXECDIR)
	$(IPROG) $(RRDD) $(DESTDIR)$(LIBEXECDIR)

META: META.in
	sed 's/@VERSION@/$(PRODUCT_VERSION)/g' < $< > $@

if $(defined-env DESTDIR)
	INSTALL_PATH = $(DESTDIR)/$(shell ocamlfind printconf destdir)
	export
else
	INSTALL_PATH = $(shell ocamlfind printconf destdir)
{'fraction_non_alphanumeric': 0.14085714285714285, 'fraction_numerical': 0.001142857142857143, 'mean_word_length': 4.2253731343283585, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '3352953', 'n_tokens_mistral': 1472, 'n_tokens_neox': 1428, 'n_words': 222}