From 8f5b0f1040de849da3fb5ade645308e7bbe7f025 Mon Sep 17 00:00:00 2001 From: Joel Martin Date: Sat, 25 Oct 2014 13:00:01 -0500 Subject: Rust: add step3_env --- rust/Makefile | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 rust/Makefile (limited to 'rust/Makefile') diff --git a/rust/Makefile b/rust/Makefile new file mode 100644 index 0000000..335f621 --- /dev/null +++ b/rust/Makefile @@ -0,0 +1,30 @@ +##################### + +SOURCES_BASE = src/types.rs src/readline.rs \ + src/reader.rs src/printer.rs +SOURCES_LISP = src/step3_env.rs +SOURCES = $(SOURCES_BASE) $(SOURCES_LISP) + +##################### + +SRCS = step0_repl.rs step1_read_print.rs step2_eval.rs step3_env.rs +BINS = $(SRCS:%.rs=target/%) + +##################### + +all: $(BINS) mal + +mal: ${SOURCES_BASE} ${SOURCES_LISP} + cargo build + cp $(word $(words ${BINS}),${BINS}) $@ + +clean: + cargo clean + rm -f mal + +.PHONY: stats stats-lisp + +stats: $(SOURCES) + @wc $^ +stats-lisp: $(SOURCES_LISP) + @wc $^ -- cgit v1.2.3