mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-06 06:48:48 +00:00
Add `install` stanza to `dune` files to install std and runtime to expected directories Delete manual copying from `install` scenario in `Makefile`
38 lines
664 B
Makefile
38 lines
664 B
Makefile
.PHONY: all regression
|
|
.PHONY: clean test regression regression-expressions regression-all uninstall install build
|
|
|
|
INSTALL ?= install -v
|
|
MKDIR ?= mkdir
|
|
BUILDDIR = _build
|
|
|
|
.DEFAULT_GOAL := build
|
|
|
|
all: build test
|
|
|
|
build:
|
|
dune b src runtime runtime32 stdlib tutorial
|
|
|
|
install: all
|
|
dune b @install --profile=release
|
|
dune install --profile=release
|
|
|
|
_build/default/Lama.install:
|
|
dune b @install
|
|
|
|
uninstall: _build/default/Lama.install
|
|
$(RM) -r `opam var share`/Lama
|
|
dune uninstall
|
|
|
|
|
|
regression-all: regression regression-expressions
|
|
|
|
test: regression
|
|
regression:
|
|
dune test regression
|
|
|
|
regression-expressions:
|
|
dune test regression_long
|
|
|
|
clean:
|
|
@dune clean
|
|
|