lama_byterun/Makefile

58 lines
1.4 KiB
Makefile
Raw Normal View History

2020-02-16 00:21:15 +03:00
EXECUTABLE = src/lamac
2020-02-13 18:56:27 +03:00
INSTALL ?= install -v
MKDIR ?= mkdir
2018-02-13 02:03:27 +03:00
2018-02-19 17:19:00 +03:00
.PHONY: all regression
2018-02-13 02:03:27 +03:00
all:
$(MAKE) -C src
$(MAKE) -C runtime
2021-09-28 03:02:05 +03:00
$(MAKE) -C byterun
$(MAKE) -C stdlib
$(MAKE) -C runtime unit_tests.o
$(MAKE) -C runtime invariants_check.o
$(MAKE) -C runtime invariants_check_debug_print.o
2018-02-13 02:03:27 +03:00
2020-02-16 00:21:15 +03:00
STD_FILES=$(shell ls stdlib/*.[oi] stdlib/*.lama runtime/runtime.a runtime/Std.i)
2020-02-13 18:56:27 +03:00
install: all
$(INSTALL) $(EXECUTABLE) `opam var bin`
$(MKDIR) -p `opam var share`/Lama
$(INSTALL) $(STD_FILES) `opam var share`/Lama/
uninstall:
$(RM) -r `opam var share`/Lama
$(RM) `opam var bin`/$(EXECUTABLE)
2018-02-19 17:19:00 +03:00
2023-09-05 20:55:48 +02:00
regression-all: regression regression-expressions regression-lama-in-lama
2018-02-19 17:19:00 +03:00
regression:
2023-09-04 23:36:36 +02:00
$(MAKE) clean check -j8 -C regression
$(MAKE) clean check -j8 -C stdlib/regression
2023-09-05 20:55:48 +02:00
regression-expressions:
$(MAKE) clean check -j8 -C regression/expressions
$(MAKE) clean check -j8 -C regression/deep-expressions
regression-lama-in-lama: all
mkdir tmp-lama
cp runtime/Std.i tmp-lama
cp runtime/runtime.a tmp-lama
cp -R stdlib/* tmp-lama
$(MAKE) -C lama-compiler
2018-02-19 17:19:00 +03:00
unit_tests:
./runtime/unit_tests.o
./runtime/invariants_check.o
./runtime/invariants_check_debug_print.o
2018-02-13 02:03:27 +03:00
clean:
$(MAKE) clean -C src
$(MAKE) clean -C runtime
$(MAKE) clean -C stdlib
$(MAKE) clean -C regression
2023-09-04 21:47:25 +02:00
$(MAKE) clean -C byterun
$(MAKE) clean -C bench
$(MAKE) clean -C lama-compiler
if [ -d tmp-lama ]; then rm -Rf tmp-lama; fi