diff options
Diffstat (limited to 'nim')
| -rw-r--r-- | nim/Makefile | 33 | ||||
| -rw-r--r-- | nim/mal.nimble | 2 |
2 files changed, 34 insertions, 1 deletions
diff --git a/nim/Makefile b/nim/Makefile new file mode 100644 index 0000000..1da1ae6 --- /dev/null +++ b/nim/Makefile @@ -0,0 +1,33 @@ +##################### + +SOURCES_BASE = types.nim reader.nim printer.nim +SOURCES_LISP = env.nim core.nim stepA_interop.nim +SOURCES = $(SOURCES_BASE) $(SOURCES_LISP) + +##################### + +SRCS = step0_repl.nim step1_read_print.nim step2_eval.nim step3_env.nim \ + step4_if_fn_do.nim step5_tco.nim step6_file.nim step7_quote.nim \ + step8_macros.nim step9_try.nim stepA_interop.nim +BINS = $(SRCS:%.nim=%) + +##################### + +all: $(BINS) mal + +mal: $(word $(words $(BINS)),$(BINS)) + cp $< $@ + +$(BINS): + nim -d:release c $@ + +clean: + rm -rf nimcache/ $(BINS) + rm -f mal + +.PHONY: stats stats-lisp + +stats: $(SOURCES) + @wc $^ +stats-lisp: $(SOURCES_LISP) + @wc $^ diff --git a/nim/mal.nimble b/nim/mal.nimble index 8c7028d..db35b0b 100644 --- a/nim/mal.nimble +++ b/nim/mal.nimble @@ -8,4 +8,4 @@ license = "MIT" bin = "step0_repl, step1_read_print, step2_eval, step3_env, step4_if_fn_do, step5_tco, step6_file, step7_quote, step8_macros, step9_try, stepA_interop" [Deps] -Requires = "nim >= 0.10.0, nre >= 0.6.0" +Requires = "nim >= 0.10.3, nre >= 0.6.0" |
