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