Add dist targets to most implementations.
[jackhill/mal.git] / tcl / Makefile
CommitLineData
54d9903c
DM
1SOURCES_BASE = mal_readline.tcl types.tcl reader.tcl printer.tcl
2SOURCES_LISP = env.tcl core.tcl stepA_mal.tcl
3SOURCES = $(SOURCES_BASE) $(SOURCES_LISP)
4
5.PHONY: stats stats-lisp
6
5245b079
JM
7all:
8 true
9
10dist: mal.tcl
11
12mal.tcl: $(SOURCES)
13 echo "#!/usr/bin/env tclsh" > $@
14 cat $+ | grep -v "^source " >> $@
15 chmod +x $@
16
17clean:
18 rm -f mal.tcl
19
20
54d9903c
DM
21stats: $(SOURCES)
22 @wc $^
23 @printf "%5s %5s %5s %s\n" `grep -E "^[[:space:]]*\"|^[[:space:]]*$$" $^ | wc` "[comments/blanks]"
24stats-lisp: $(SOURCES_LISP)
25 @wc $^
26 @printf "%5s %5s %5s %s\n" `grep -E "^[[:space:]]*\"|^[[:space:]]*$$" $^ | wc` "[comments/blanks]"