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
|
|
|
SHELL := /bin/bash
|
|
|
|
|
|
2018-02-19 17:19:00 +03:00
|
|
|
.PHONY: all regression
|
2018-02-13 02:03:27 +03:00
|
|
|
|
|
|
|
|
all:
|
|
|
|
|
pushd src && make && popd
|
2018-03-04 23:13:08 +03:00
|
|
|
pushd runtime && make && popd
|
2020-01-14 17:08:35 +03:00
|
|
|
pushd stdlib && make && popd
|
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
|
|
|
#$(info $(STD_FILES))
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
regression:
|
2020-01-14 17:08:35 +03:00
|
|
|
pushd regression && make clean check && popd
|
|
|
|
|
pushd regression/x86only && make clean check && popd
|
|
|
|
|
pushd stdlib/regression && make clean check && popd
|
2018-02-19 17:19:00 +03:00
|
|
|
|
2018-02-13 02:03:27 +03:00
|
|
|
clean:
|
|
|
|
|
pushd src && make clean && popd
|
2018-03-04 23:13:08 +03:00
|
|
|
pushd runtime && make clean && popd
|
2020-01-14 17:08:35 +03:00
|
|
|
pushd stdlib && make clean && popd
|
2018-02-23 12:08:00 +07:00
|
|
|
pushd regression && make clean && popd
|
2018-02-13 02:03:27 +03:00
|
|
|
|
2020-01-14 17:08:35 +03:00
|
|
|
|