Commit 0b8595f2 authored by Romain Courteaud's avatar Romain Courteaud

Add Jison call in the build process.

parent 689b8e5a
......@@ -139,27 +139,12 @@ ${JIOVERSION}: lib/uri/URI.js \
#############################################
# Jison
#############################################
# dir
QUERIES_DIR = src/queries
# files
PARSER_PAR = $(QUERIES_DIR)/core/parser.par
PARSER_OUT = $(QUERIES_DIR)/build/parser.js
# npm install jscc-node
JSCC_CMD = node ./node_modules/.bin/jison -m js
auto: compile
compile:
mkdir -p $(dir $(PARSER_OUT))
$(JSCC_CMD) -o $(PARSER_OUT) $(PARSER_PAR)
${SRCDIR}/queries/build/parser.js: ${SRCDIR}/queries/core/parser.par
@echo jison
@mkdir -p $(@D)
${JISON} -m js -o $@ $<
.phony: clean
clean:
rm -rf ${LINTDIR}
find -name '*~' -delete
realclean:
rm -f "$(PARSER_OUT)"
NODE = node
JSLINT = ${NODE} ./node_modules/.bin/jslint
JISON = ${NODE} ./node_modules/.bin/jison
\ No newline at end of file
......@@ -39,7 +39,7 @@
"jslint": "0.9.2",
"lz-string": "^1.4.4",
"sinon": "~1.7.3",
"jison": "~0.4.16"
"jison": "0.4.16"
},
"engines": {
"npm": ">=1.3"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment