diff options
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 $@ |
