Add basic Makefile
[jackhill/mal.git] / racket / Makefile
1 SOURCES_BASE = types.rkt reader.rkt printer.rkt
2 SOURCES_LISP = env.rkt core.rkt stepA_mal.rkt
3 SOURCES = $(SOURCES_BASE) $(SOURCES_LISP)
4
5 all:
6
7 dist: mal
8
9 mal: $(SOURCES)
10 raco exe stepA_mal.rkt
11 mv stepA_mal $@
12
13 clean:
14 rm -f mal
15
16 .PHONY: stats
17
18 stats: $(SOURCES)
19 @wc $^
20 @printf "%5s %5s %5s %s\n" `grep -E "^[[:space:]]*;|^[[:space:]]*$$" $^ | wc` "[comments/blanks]"
21 stats-lisp: $(SOURCES_LISP)
22 @wc $^
23 @printf "%5s %5s %5s %s\n" `grep -E "^[[:space:]]*;|^[[:space:]]*$$" $^ | wc` "[comments/blanks]"