Fix Nim version for Nim 1.0.4
[jackhill/mal.git] / nim / Makefile
CommitLineData
a2cd0a3a 1#####################
2
3SOURCES_BASE = types.nim reader.nim printer.nim
3faa513e 4SOURCES_REBUILD = $(SOURCES_BASE) env.nim core.nim
a2cd0a3a 5
6#####################
7
8SRCS = step0_repl.nim step1_read_print.nim step2_eval.nim step3_env.nim \
9 step4_if_fn_do.nim step5_tco.nim step6_file.nim step7_quote.nim \
2c47ac54 10 step8_macros.nim step9_try.nim stepA_mal.nim
a2cd0a3a 11BINS = $(SRCS:%.nim=%)
12
13#####################
14
5245b079
JM
15all: $(BINS)
16
17dist: mal
a2cd0a3a 18
19mal: $(word $(words $(BINS)),$(BINS))
20 cp $< $@
21
3faa513e 22$(BINS): %: %.nim $(SOURCES_REBUILD)
23 nim -d:release --nimcache:nimcache-$@ c $@
a2cd0a3a 24
25clean:
3faa513e 26 rm -rf nimcache-*/ $(BINS)
a2cd0a3a 27 rm -f mal