Merge pull request #156 from omarrayward/explain-regexp-tokenizer
[jackhill/mal.git] / php / Makefile
1
2 TESTS =
3
4 SOURCES_BASE = readline.php types.php reader.php printer.php
5 SOURCES_LISP = env.php core.php stepA_mal.php
6 SOURCES = $(SOURCES_BASE) $(SOURCES_LISP)
7
8 all:
9
10 .PHONY: stats tests $(TESTS)
11
12 stats: $(SOURCES)
13 @wc $^
14 @printf "%5s %5s %5s %s\n" `grep -E "^[[:space:]]*#|^[[:space:]]*//|^[[:space:]]/\*|^[[:space:]]*$$" $^ | wc` "[comments/blanks]"
15 stats-lisp: $(SOURCES_LISP)
16 @wc $^
17 @printf "%5s %5s %5s %s\n" `grep -E "^[[:space:]]*#|^[[:space:]]*//|^[[:space:]]/\*|^[[:space:]]*$$" $^ | wc` "[comments/blanks]"
18
19 tests: $(TESTS)
20
21 $(TESTS):
22 @echo "Running $@"; \
23 php $@ || exit 1; \