2015-02-16 09:01:10 +03:00
|
|
|
|
|
|
|
SOURCES_BASE = node_readline.js miniMAL-core.json \
|
|
|
|
types.json reader.json printer.json
|
2015-02-28 20:09:54 +03:00
|
|
|
SOURCES_LISP = env.json core.json stepA_mal.json
|
2015-02-16 09:01:10 +03:00
|
|
|
SOURCES = $(SOURCES_BASE) $(SOURCES_LISP)
|
|
|
|
|
2015-10-10 07:11:47 +03:00
|
|
|
all: node_modules
|
|
|
|
|
|
|
|
node_modules:
|
|
|
|
npm install
|
|
|
|
|
2015-02-16 09:01:10 +03:00
|
|
|
.PHONY: stats tests $(TESTS)
|
|
|
|
|
|
|
|
stats: $(SOURCES)
|
|
|
|
@wc $^
|
2015-10-27 06:33:49 +03:00
|
|
|
@printf "%5s %5s %5s %s\n" `grep -E "^[[:space:]]*$$" $^ | wc` "[comments/blanks]"
|
2015-02-16 09:01:10 +03:00
|
|
|
stats-lisp: $(SOURCES_LISP)
|
|
|
|
@wc $^
|
2015-10-27 06:33:49 +03:00
|
|
|
@printf "%5s %5s %5s %s\n" `grep -E "^[[:space:]]*$$" $^ | wc` "[comments/blanks]"
|