Find file
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (10 sloc) 257 Bytes
.PHONY: test all
GRAMMAR=lib/grammar.pegjs
PEGJS=./node_modules/.bin/pegjs
all: lib/parser.js
lib/parser.js: $(PEGJS)
$(PEGJS) $(GRAMMAR) $@
$(PEGJS):
npm install
test: lib/parser.js
./node_modules/.bin/mocha --check-leaks -R list -u tdd test/*.js