mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-05 22:38:44 +00:00
add build and rutime rebuild
This commit is contained in:
parent
db9067b748
commit
b532e90ea0
1 changed files with 12 additions and 1 deletions
13
Makefile
13
Makefile
|
|
@ -1,6 +1,7 @@
|
|||
EXECUTABLE = src/lamac
|
||||
INSTALL ?= install -v
|
||||
MKDIR ?= mkdir
|
||||
BUILDDIR = build
|
||||
|
||||
.PHONY: all regression
|
||||
|
||||
|
|
@ -8,13 +9,22 @@ all:
|
|||
$(MAKE) -C src
|
||||
$(MAKE) -C runtime
|
||||
# $(MAKE) -C byterun
|
||||
# $(MAKE) -C stdlib
|
||||
$(MAKE) -C stdlib
|
||||
# $(MAKE) -C runtime unit_tests.o
|
||||
# $(MAKE) -C runtime invariants_check.o
|
||||
# $(MAKE) -C runtime invariants_check_debug_print.o
|
||||
|
||||
STD_FILES=$(shell ls stdlib/*.[oi] stdlib/*.lama runtime/runtime.a runtime/Std.i)
|
||||
|
||||
remake_runtime:
|
||||
$(MAKE) -C runtime clean
|
||||
$(MAKE) -C runtime all
|
||||
|
||||
copy_to_build: all
|
||||
mkdir -p $(BUILDDIR)
|
||||
cp runtime/Std.i runtime/runtime.a stdlib/* $(BUILDDIR)
|
||||
|
||||
|
||||
install: all
|
||||
$(INSTALL) $(EXECUTABLE) `opam var bin`
|
||||
$(MKDIR) -p `opam var share`/Lama
|
||||
|
|
@ -49,3 +59,4 @@ clean:
|
|||
$(MAKE) clean -C regression
|
||||
$(MAKE) clean -C byterun
|
||||
$(MAKE) clean -C bench
|
||||
rm -rf $(BUILDDIR)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue