lama_byterun/Makefile

37 lines
843 B
Makefile
Raw Normal View History

2020-02-13 18:56:27 +03:00
EXECUTABLE = src/rc.opt
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
pushd stdlib && make && popd
2018-02-13 02:03:27 +03:00
2020-02-13 18:56:27 +03:00
STD_FILES=$(shell ls stdlib/*.[oi] stdlib/*.expr runtime/runtime.a runtime/Std.i)
#$(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:
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
pushd stdlib && make clean && popd
pushd regression && make clean && popd
2018-02-13 02:03:27 +03:00