<commit_before>OS ?= unix

PREFIX ?= /usr/local

ifneq "$(MIRAGE_OS)" ""
OS := $(MIRAGE_OS)
endif

.PHONY: all build clean install test
.DEFAULT: all

all:	build
	@ :

build:
	cd $(OS) && $(MAKE) all MIRAGE_OS=$(OS)

clean:
	cd $(OS) && $(MAKE) clean MIRAGE_OS=$(OS)

install:
	cd $(OS) && $(MAKE) install MIRAGE_OS=$(OS)

uninstall:
	cd $(OS) && $(MAKE) uninstall MIRAGE_OS=$(OS)

test:
	cd $(OS) && $(MAKE) test MIRAGE_OS=$(OS)

doc:
	cd $(OS) && $(MAKE) doc MIRAGE_OS=$(OS)

unix-%:
	$(MAKE) OS=unix PREFIX=$(PREFIX) $*

xen-build:
	cd xen && $(MAKE)

xen-install:
	$(MAKE) xen-uninstall
	cd xen && $(MAKE) install
	cd xen-ocaml && $(MAKE) build-bindings

xen-uninstall:
	ocamlfind remove mirage-xen || true
	cd xen-ocaml && $(MAKE) uninstall-bindings

xen-ocaml-build:
	echo "move along"

xen-ocaml-install:
	cd xen-posix && $(MAKE) build install
	cd xen-ocaml && $(MAKE) build install

xen-ocaml-uninstall:
	cd xen-posix && $(MAKE) uninstall
	cd xen-ocaml && $(MAKE) uninstall

VERSION = $(shell grep 'VERSION=' unix/_vars | sed 's/VERSION=*//')
ARCHIVE = https://github.com/mirage/mirage-platform/archive/v$(VERSION).tar.gz

release:
	git tag -a v$(VERSION) -m "Version $(VERSION)."
	git push upstream v$(VERSION)
	$(MAKE) pr<commit_msg>there's no install in xen-ocaml<commit_after>OS ?= unix

PREFIX ?= /usr/local

ifneq "$(MIRAGE_OS)" ""
OS := $(MIRAGE_OS)
endif

.PHONY: all build clean install test
.DEFAULT: all

all:	build
	@ :

build:
	cd $(OS) && $(MAKE) all MIRAGE_OS=$(OS)

clean:
	cd $(OS) && $(MAKE) clean MIRAGE_OS=$(OS)

install:
	cd $(OS) && $(MAKE) install MIRAGE_OS=$(OS)

uninstall:
	cd $(OS) && $(MAKE) uninstall MIRAGE_OS=$(OS)

test:
	cd $(OS) && $(MAKE) test MIRAGE_OS=$(OS)

doc:
	cd $(OS) && $(MAKE) doc MIRAGE_OS=$(OS)

unix-%:
	$(MAKE) OS=unix PREFIX=$(PREFIX) $*

xen-build:
	cd xen && $(MAKE)

xen-install:
	$(MAKE) xen-uninstall
	cd xen && $(MAKE) install
	cd xen-ocaml && $(MAKE) build-bindings

xen-uninstall:
	ocamlfind remove mirage-xen || true
	cd xen-ocaml && $(MAKE) uninstall-bindings

xen-ocaml-build:
	echo "move along"

xen-ocaml-install:
	cd xen-posix && $(MAKE) build install
	cd xen-ocaml && $(MAKE) build

xen-ocaml-uninstall:
	cd xen-posix && $(MAKE) uninstall
	cd xen-ocaml && $(MAKE) uninstall

VERSION = $(shell grep 'VERSION=' unix/_vars | sed 's/VERSION=*//')
ARCHIVE = https://github.com/mirage/mirage-platform/archive/v$(VERSION).tar.gz

release:
	git tag -a v$(VERSION) -m "Version $(VERSION)."
	git push upstream v$(VERSION)
	$(MAKE) pr
{'fraction_non_alphanumeric': 0.19310897435897437, 'fraction_numerical': 0.0, 'mean_word_length': 4.234800838574423, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '2152292', 'n_tokens_mistral': 1080, 'n_tokens_neox': 1015, 'n_words': 262}