diff options
| author | Joel Martin <github@martintribe.org> | 2015-03-03 22:46:09 -0600 |
|---|---|---|
| committer | Joel Martin <github@martintribe.org> | 2015-03-03 22:46:09 -0600 |
| commit | 2b0fa48326927683fa19f399b3edb8aae3dbcd36 (patch) | |
| tree | 4f0d2b3b6b9e397f968f977cc38ec9a5b8b200f1 /nim/Makefile | |
| parent | 58ba5af4704c4539ee7d3814dfeff8672577f86a (diff) | |
| parent | a2cd0a3adae2ccf2566122bcd90230d905ab59dc (diff) | |
| download | mal-2b0fa48326927683fa19f399b3edb8aae3dbcd36.tar.gz mal-2b0fa48326927683fa19f399b3edb8aae3dbcd36.zip | |
Merge pull request #20 from def-/master
Add Nim
Diffstat (limited to 'nim/Makefile')
| -rw-r--r-- | nim/Makefile | 33 |
1 files changed, 33 insertions, 0 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 $^ |
