Merge branch 'issue_166_string_ops' of github.com:kanaka/mal into issue_166_string_ops
[jackhill/mal.git] / guile / Makefile
1 SOURCES_BASE = readline.scm types.scm reader.scm printer.scm
2 SOURCES_LISP = env.scm core.scm stepA_mal.scm
3 SOURCES = $(SOURCES_BASE) $(SOURCES_LISP)
4
5 all:
6 true
7
8 dist: mal.scm
9
10 mal.scm: $(SOURCES)
11 echo "#! /usr/bin/env guile" > $@
12 echo "!#" >> $@
13 cat $+ | sed $(foreach f,$(+),-e 's/(readline)//') >> $@
14 chmod +x $@
15
16 clean:
17 rm -f mal.scm
18
19 .PHONY: stats
20
21 stats: $(SOURCES)
22 @wc $^
23 @printf "%5s %5s %5s %s\n" `grep -E "^[[:space:]]*;|^[[:space:]]*$$" $^ | wc` "[comments/blanks]"
24 stats-lisp: $(SOURCES_LISP)
25 @wc $^
26 @printf "%5s %5s %5s %s\n" `grep -E "^[[:space:]]*;|^[[:space:]]*$$" $^ | wc` "[comments/blanks]"