lama_byterun/Makefile

63 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
2024-02-06 15:05:19 +01:00
BUILDDIR = build
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
2024-01-26 18:45:03 +01:00
# $(MAKE) -C byterun
2024-02-06 15:05:19 +01:00
$(MAKE) -C stdlib
2024-01-26 18:45:03 +01:00
# $(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
2024-02-06 15:05:19 +01:00
remake_runtime:
$(MAKE) -C runtime clean
$(MAKE) -C runtime all
2024-02-06 15:39:33 +01:00
copy_to_build: all remake_runtime
2024-02-06 15:05:19 +01:00
mkdir -p $(BUILDDIR)
2024-03-14 09:01:50 +01:00
cp runtime/Std.i runtime/runtime.a stdlib/* src/lamac $(BUILDDIR)
2024-02-06 15:05:19 +01:00
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-10-04 10:39:39 +02:00
regression-all: regression regression-expressions
2023-09-05 20:55:48 +02:00
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
unit_tests:
./runtime/unit_tests.o
./runtime/invariants_check.o
./runtime/invariants_check_debug_print.o
negative_scenarios_tests:
$(MAKE) -C runtime negative_tests
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
2024-02-06 15:05:19 +01:00
rm -rf $(BUILDDIR)