ref: 05b59aa248ee0e5cf56696ff0e4334948d0583fd
parent: b1b1dec53c14e3c4778d8b795f6f9d981de7302d
author: Lennart Augustsson <lennart@augustsson.net>
date: Sat Jan 20 15:58:09 EST 2024
More about installation.
--- a/README.md
+++ b/README.md
@@ -17,11 +17,15 @@
Compiling MicroHs is really best done using `make`, but there is also a `MicroHs.cabal` file
for use with `cabal`. This only builds what corresponds to the first target.
+Doing `cabal install` will install the compiler.
+Note that `mhs` built with ghc does not have all the functionality.
Also note that there is no need to have a Haskell compiler to run MicroHs.
All you need is a C compiler, and MicroHs can bootstrap, given the included combinator file.
-To install `mhs` use `make install`. You also need to set the environment variable `MHSDIR`.
+To install `mhs` use `make install`. By default this copies the files to `/usr/local`,
+but this can be overridden by `make PREFIX=dir install`.
+You also need to set the environment variable `MHSDIR`.
To compile on Windows make sure `cl` is in the path, and then use `nmake` with `Makefile.windows`.
--
⑨