1
1
mirror of https://github.com/kanaka/mal.git synced 2024-08-17 01:30:26 +03:00

SML build with MLton

This commit is contained in:
Fabian 2021-03-24 18:46:59 +01:00 committed by Joel Martin
parent c4d1636b2f
commit 5cdd487de4
2 changed files with 10 additions and 6 deletions

View File

@ -1,13 +1,11 @@
STEPS = step0_repl.sml
STEP_BINS = $(STEPS:%.sml=%)
STEP_BINS = step0_repl
all: $(STEP_BINS)
$(STEP_BINS): %: %.sml
mosmlc $< main.sml -o $@
step0_repl: step0_repl.mlb step0_repl.sml main.sml
mlton -output $@ $<
clean:
rm -f $(STEP_BINS) *.ui *.uo
rm -f $(STEP_BINS)
.PHONY: all clean

6
impls/sml/step0_repl.mlb Normal file
View File

@ -0,0 +1,6 @@
local
$(SML_LIB)/basis/basis.mlb
step0_repl.sml
in
main.sml
end