Make Targets (Building, Testing, and Installing)
The make targets available in the Makefile
at the root of the Miking
repository provides a number of conveniences for working on the code
base. This page provides a brief summary of the more important ones.
Building the Compiler​
bootstrap
: run the full bootstrapping procedure, creatingbuild/mi
. This is the default target, i.e., runningmake
is equivalent withmake bootstrap
.cheat
: use anmi
compiler available in your$PATH
(i.e., installed on your system) to build a compiler in one step, placing it atbuild/mi-cheat
. This is significantly faster than full bootstrapping, and is often useful while working, as long as the new compiler requires no new features.
Working with boot
​
boot
: build the bootstrapping interpreter and theboot
library, placing the former atbuild/mi-boot
.lint
,fix
: check code formatting of the OCaml code implementingboot
. Note thatlint
will merely show incorrect formatting, whilefix
automatically corrects it.
Installing and Uninstalling​
install-boot
/uninstall-boot
: install/uninstall theboot
library on the system.install
/uninstall
: install/uninstall themi
compiler and standard library. Note thatinstall
also runsinstall-boot
, since it's required, butuninstall
will leaveboot
.
Testing​
For more information about testing Miking, see here.
test
: detects which dependencies you have install and runs all tests whose dependencies are satisfied using the bootstrapped compiler.test-all
: liketest
, except assumes all possible dependencies are installed. Note that tests requiring specialized hardware will still not run if that hardware is absent.test-quick
: run a smaller set of tests, turning off all optional test collections.