1
1
mirror of https://github.com/kanaka/mal.git synced 2024-09-20 01:57:09 +03:00
mal/ocaml/Makefile

17 lines
296 B
Makefile

STEPS = step0_repl.ml step1_read_print.ml
MODULES = types.ml reader.ml printer.ml
LIBS = str.cma
BINS = $(STEPS:%.ml=%)
all: $(BINS) mal oc
mal: $(word $(words $(BINS)),$(BINS))
cp $< $@
$(BINS): %: %.ml $(MODULES)
ocamlc $(LIBS) $(MODULES) $< -o $@
clean:
rm -f $(BINS) mal *.cmi *.cmo