Merge pull request #377 from asarhaddon/fix-runtests-pre-eval
[jackhill/mal.git] / crystal / Makefile
index a26b02d..42739be 100644 (file)
@@ -2,7 +2,6 @@ STEPS = step0_repl.cr step1_read_print.cr step2_eval.cr step3_env.cr \
         step4_if_fn_do.cr step5_tco.cr step6_file.cr step7_quote.cr \
        step8_macros.cr step9_try.cr stepA_mal.cr
 
-STEP0_DEPS = readline.cr
 STEP1_DEPS = $(STEP0_DEPS) reader.cr printer.cr
 STEP2_DEPS = $(STEP1_DEPS) types.cr
 STEP3_DEPS = $(STEP2_DEPS) env.cr
@@ -19,7 +18,7 @@ mal: $(LAST_STEP_BIN)
        cp $< $@
 
 $(STEP_BINS): %: %.cr
-       crystal compile --release $<
+       crystal build --release $<
 
 step0_repl: $(STEP0_DEPS)
 step1_read_print: $(STEP1_DEPS)
@@ -30,12 +29,5 @@ step4_if_fn_do step5_tco step6_file step7_quote step8_macros step9_try stepA_mal
 clean:
        rm -rf $(STEP_BINS) mal .crystal
 
-stats: types.cr error.cr readline.cr reader.cr printer.cr env.cr core.cr stepA_mal.cr
-       @wc $^
-       @printf "%5s %5s %5s %s\n" `grep -E "^[[:space:]]*#|^[[:space:]]*$$" $^ | wc` "[comments/blanks]"
-stats-lisp: env.cr core.cr stepA_mal.cr
-       @wc $^
-       @printf "%5s %5s %5s %s\n" `grep -E "^[[:space:]]*#|^[[:space:]]*$$" $^ | wc` "[comments/blanks]"
-
-.PHONY: all clean stats stats-lisp
+.PHONY: all clean