Commit | Line | Data |
---|---|---|
a2cd0a3a | 1 | ##################### |
2 | ||
3 | SOURCES_BASE = types.nim reader.nim printer.nim | |
3faa513e | 4 | SOURCES_REBUILD = $(SOURCES_BASE) env.nim core.nim |
a2cd0a3a | 5 | |
6 | ##################### | |
7 | ||
8 | SRCS = 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 | 11 | BINS = $(SRCS:%.nim=%) |
12 | ||
13 | ##################### | |
14 | ||
5245b079 JM |
15 | all: $(BINS) |
16 | ||
17 | dist: mal | |
a2cd0a3a | 18 | |
19 | mal: $(word $(words $(BINS)),$(BINS)) | |
20 | cp $< $@ | |
21 | ||
3faa513e | 22 | $(BINS): %: %.nim $(SOURCES_REBUILD) |
23 | nim -d:release --nimcache:nimcache-$@ c $@ | |
a2cd0a3a | 24 | |
25 | clean: | |
3faa513e | 26 | rm -rf nimcache-*/ $(BINS) |
a2cd0a3a | 27 | rm -f mal |