12 lines
207 B
Makefile
12 lines
207 B
Makefile
|
|
||
|
all: lib/parser.js
|
||
|
|
||
|
lib/parser.js: src/parser.pegjs
|
||
|
@echo "Generating parser ..."
|
||
|
@mkdir -p lib/
|
||
|
@if ! pegjs --output lib/parser.js src/parser.pegjs; then \
|
||
|
rm -rf lib/parser.js; \
|
||
|
exit 1; \
|
||
|
fi
|
||
|
|