lama_byterun/Makefile

44 lines
987 B
Makefile
Raw Normal View History

.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
BUILDDIR = _build
2018-02-13 02:03:27 +03:00
.DEFAULT_GOAL := build
2018-02-13 02:03:27 +03:00
all: build test
2018-02-13 02:03:27 +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
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
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
test: regression
2018-02-19 17:19:00 +03:00
regression:
dune test regression
2023-09-05 20:55:48 +02:00
regression-expressions:
dune test regression_long
2018-02-13 02:03:27 +03:00
clean:
@dune clean