Makefile 218 B

123456789101112131415
  1. .PHONY: test all
  2. GRAMMAR=lib/grammar.pegjs
  3. PEGJS=./node_modules/.bin/pegjs
  4. all: lib/parser.js
  5. lib/parser.js: $(PEGJS)
  6. $(PEGJS) $(GRAMMAR) $@
  7. $(PEGJS):
  8. npm install
  9. test: lib/parser.js
  10. ./node_modules/.bin/zUnit