All: show comments with stats target.
[jackhill/mal.git] / r / Makefile
1 TESTS =
2
3 SOURCES_BASE = readline.r types.r reader.r printer.r
4 SOURCES_LISP = env.r core.r stepA_mal.r
5 SOURCES = $(SOURCES_BASE) $(SOURCES_LISP)
6
7 all: libs
8
9 .PHONY: stats tests $(TESTS)
10
11 stats: $(SOURCES)
12 @wc $^
13 @printf "%5s %5s %5s %s\n" `grep -E "^[[:space:]]*#|^[[:space:]]*$$" $^ | wc` "[comments/blanks]"
14 stats-lisp: $(SOURCES_LISP)
15 @wc $^
16 @printf "%5s %5s %5s %s\n" `grep -E "^[[:space:]]*#|^[[:space:]]*$$" $^ | wc` "[comments/blanks]"
17
18
19 .PHONY:
20 libs: lib/rdyncall
21
22 lib/rdyncall:
23 curl -O http://cran.r-project.org/src/contrib/Archive/rdyncall/rdyncall_0.7.5.tar.gz
24 mkdir -p lib
25 R CMD INSTALL rdyncall_0.7.5.tar.gz -l lib/
26 rm rdyncall_0.7.5.tar.gz