Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
preetwinder
jio
Commits
e2fdf56b
Commit
e2fdf56b
authored
Feb 08, 2013
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rhino is not used anymore, js/cc is used by node now.
To install js/cc type: sh -c 'cd ; npm install jscc-node'
parent
24b49022
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
16 deletions
+17
-16
Makefile
Makefile
+17
-16
No files found.
Makefile
View file @
e2fdf56b
# dir
# dir
JIO_DIR
=
src/jio
JIO_DIR
=
src/jio
STORAGE_DIR
=
src/jio.storage
STORAGE_DIR
=
src/jio.storage
QUERIES_DIR
=
src/queries
QUERIES_DIR
=
src/queries
JSCC_DIR
=
~/modules/jscc
# files
# files
JIO
=
jio.js
JIO
=
jio.js
JIO_MIN
=
jio.min.js
JIO_MIN
=
jio.min.js
COMPLEX
=
complex_queries.js
COMPLEX
=
complex_queries.js
COMPLEX_MIN
=
complex_queries.min.js
COMPLEX_MIN
=
complex_queries.min.js
PARSER_PAR
=
$(QUERIES_DIR)
/parser.par
PARSER_PAR
=
$(QUERIES_DIR)
/parser.par
PARSER_OUT
=
$(QUERIES_DIR)
/parser.js
PARSER_OUT
=
$(QUERIES_DIR)
/parser.js
# using rhino
## js/cc using rhino
JSCC_CMD
=
rhino
$(JSCC_DIR)
/jscc.js
-t
$(JSCC_DIR)
/driver_web.js_
#JSCC_CMD = rhino ~/modules/jscc/jscc.js -t ~/modules/jscc/driver_web.js_
# npm install jslint
# sh -c 'cd ; npm install jscc-node'
JSCC_CMD
=
node ~/node_modules/jscc-node/jscc.js
-t
~/node_modules/jscc-node/driver_node.js_
# sh -c 'cd ; npm install jslint'
LINT_CMD
=
$(
shell
which jslint
||
echo
node ~/node_modules/jslint/bin/jslint.js
)
--terse
LINT_CMD
=
$(
shell
which jslint
||
echo
node ~/node_modules/jslint/bin/jslint.js
)
--terse
#
npm install uglify-js
#
sh -c 'cd ; npm install uglify-js'
UGLIFY_CMD
=
$(
shell
which uglifyjs
||
echo
node ~/node_modules/uglify-js/bin/uglifyjs
)
UGLIFY_CMD
=
$(
shell
which uglifyjs
||
echo
node ~/node_modules/uglify-js/bin/uglifyjs
)
auto
:
compile build lint
auto
:
compile build lint
...
@@ -33,7 +34,7 @@ CONCAT_JIO_FILES = $(CONCAT_JIO_NAMES:%=$(JIO_DIR)/%.js)
...
@@ -33,7 +34,7 @@ CONCAT_JIO_FILES = $(CONCAT_JIO_NAMES:%=$(JIO_DIR)/%.js)
LINT_FILES
=
$
(
LINT_NAMES:%
=
$(JIO_DIR)
/%.js
)
$
(
CONCAT_STORAGE_NAMES:%
=
$(STORAGE_DIR)
/%.js
)
LINT_FILES
=
$
(
LINT_NAMES:%
=
$(JIO_DIR)
/%.js
)
$
(
CONCAT_STORAGE_NAMES:%
=
$(STORAGE_DIR)
/%.js
)
# build parser.js
# build parser.js
compile
:
compile
:
$(JSCC_CMD)
-o
$(PARSER_OUT)
$(PARSER_PAR)
$(JSCC_CMD)
-o
$(PARSER_OUT)
$(PARSER_PAR)
# concat source files into jio.js and complex-queries.js
# concat source files into jio.js and complex-queries.js
...
@@ -64,4 +65,4 @@ realclean:
...
@@ -64,4 +65,4 @@ realclean:
rm
-f
"
$(JIO_MIN)
"
rm
-f
"
$(JIO_MIN)
"
rm
-f
"
$(COMPLEX)
"
rm
-f
"
$(COMPLEX)
"
rm
-f
"
$(COMPLEX_MIN)
"
rm
-f
"
$(COMPLEX_MIN)
"
rm
-f
"
$(PARSER_OUT)
"
rm
-f
"
$(PARSER_OUT)
"
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment