2024-09-05 18:32:06 +03:00
|
|
|
.PHONY: all regression
|
|
|
|
|
.PHONY: clean test regression regression-expressions regression-all uninstall install build
|
|
|
|
|
|
2020-02-13 18:56:27 +03:00
|
|
|
INSTALL ?= install -v
|
|
|
|
|
MKDIR ?= mkdir
|
2024-09-05 18:32:06 +03:00
|
|
|
BUILDDIR = _build
|
2018-02-13 02:03:27 +03:00
|
|
|
|
2024-09-05 19:36:55 +03:00
|
|
|
.DEFAULT_GOAL := build
|
2018-02-13 02:03:27 +03:00
|
|
|
|
2024-09-05 19:36:55 +03:00
|
|
|
all: build test
|
2018-02-13 02:03:27 +03:00
|
|
|
|
2024-09-05 19:36:55 +03:00
|
|
|
build:
|
|
|
|
|
dune b src runtime runtime32 stdlib
|
2024-02-06 15:05:19 +01:00
|
|
|
|
2020-02-13 18:56:27 +03:00
|
|
|
install: all
|
2024-09-05 18:32:06 +03:00
|
|
|
dune b @install --profile=release
|
|
|
|
|
dune install --profile=release
|
|
|
|
|
$(MKDIR) -p `opam var share`/Lama/x64
|
|
|
|
|
$(INSTALL) $(shell ls _build/default/stdlib/x64/*.[oi] _build/default/stdlib/x64/stdlib/*.lama \
|
|
|
|
|
runtime/runtime.a runtime/Std.i) \
|
|
|
|
|
`opam var share`/Lama/x64
|
|
|
|
|
$(MKDIR) -p `opam var share`/Lama/x32
|
|
|
|
|
$(INSTALL) $(shell ls _build/default/stdlib/x32/*.[oi] _build/default/stdlib/x32/stdlib/*.lama \
|
|
|
|
|
runtime32/runtime.a runtime32/Std.i) \
|
|
|
|
|
`opam var share`/Lama/x32
|
2020-02-13 18:56:27 +03:00
|
|
|
|
|
|
|
|
uninstall:
|
|
|
|
|
$(RM) -r `opam var share`/Lama
|
2024-09-05 18:32:06 +03:00
|
|
|
dune uninstall
|
|
|
|
|
|
2018-02-19 17:19:00 +03:00
|
|
|
|
2023-10-04 10:39:39 +02:00
|
|
|
regression-all: regression regression-expressions
|
2023-09-05 20:55:48 +02:00
|
|
|
|
2024-09-05 18:32:06 +03:00
|
|
|
test: regression
|
2018-02-19 17:19:00 +03:00
|
|
|
regression:
|
2024-09-05 18:32:06 +03:00
|
|
|
dune test regression
|
2023-09-05 20:55:48 +02:00
|
|
|
|
|
|
|
|
regression-expressions:
|
2024-09-05 18:32:06 +03:00
|
|
|
dune test regression_long
|
2023-10-04 05:27:33 +02:00
|
|
|
|
2018-02-13 02:03:27 +03:00
|
|
|
clean:
|
2024-09-05 18:32:06 +03:00
|
|
|
@dune clean
|
|
|
|
|
|