Compile clisp files before running
[jackhill/mal.git] / clisp / Makefile
1 SOURCES_BASE = utils.lisp types.lisp reader.lisp printer.lisp
2 SOURCES_LISP = env.lisp core.lisp stepA_mal.lisp
3 SOURCES = $(SOURCES_BASE) $(SOURCES_LISP)
4
5 all:
6 true
7
8 .PHONY: stats
9
10 step%.fas : step%.lisp dependencies.lisp utils.lisp types.lisp env.lisp printer.lisp reader.lisp
11 clisp -q -c $<
12
13 stats: $(SOURCES)
14 @wc $^
15 @printf "%5s %5s %5s %s\n" `grep -E "^[[:space:]]*;|^[[:space:]]*$$" $^ | wc` "[comments/blanks]"
16
17 stats-lisp: $(SOURCES_LISP)
18 @wc $^
19 @printf "%5s %5s %5s %s\n" `grep -E "^[[:space:]]*;|^[[:space:]]*$$" $^ | wc` "[comments/blanks]"