diff options
| author | Chouser <chouser@n01se.net> | 2015-01-22 02:59:48 -0500 |
|---|---|---|
| committer | Chouser <chouser@n01se.net> | 2015-01-30 12:54:42 -0500 |
| commit | 921a951fe4d088e60ce25866344bd534420f9ec6 (patch) | |
| tree | 411999aa4176c13e61f3cda4508f873f1f067975 /ocaml/Makefile | |
| parent | 59d10e1bd703f65e12fef85bceef4204f82685fb (diff) | |
| download | mal-921a951fe4d088e60ce25866344bd534420f9ec6.tar.gz mal-921a951fe4d088e60ce25866344bd534420f9ec6.zip | |
Ocaml: Add step 2, nothing optional
Diffstat (limited to 'ocaml/Makefile')
| -rw-r--r-- | ocaml/Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ocaml/Makefile b/ocaml/Makefile index a46b82a..a526ecf 100644 --- a/ocaml/Makefile +++ b/ocaml/Makefile @@ -1,14 +1,17 @@ -STEPS = step0_repl.ml step1_read_print.ml +STEPS = step0_repl.ml step1_read_print.ml step2_eval.ml MODULES = types.ml reader.ml printer.ml LIBS = str.cma BINS = $(STEPS:%.ml=%) -all: $(BINS) mal oc +all: $(BINS) mal mal: $(word $(words $(BINS)),$(BINS)) cp $< $@ +repl: $(MODULES) + rlwrap ocaml $(LIBS) $(MODULES:%.ml=%.cmo) + $(BINS): %: %.ml $(MODULES) ocamlc $(LIBS) $(MODULES) $< -o $@ |
