Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
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
amrani
jio
Commits
322fc688
Commit
322fc688
authored
Jan 10, 2013
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Makefile improved
parent
db517423
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
Makefile
Makefile
+6
-7
No files found.
Makefile
View file @
322fc688
OUT
=
jio.js
UGLY_OUT
=
jio.min.js
LINT_CMD
=
jslint
--terse
--indent
2
--maxlen
80
LINT_CMD
=
jslint
--terse
UGLIFY_CMD
=
uglifyjs
FILE_DIR
=
src/jio
STORAGE_DIR
=
src/jio.storage
...
...
@@ -23,13 +23,12 @@ uglify:
# lint all files in FILES and STORAGE_FILES
# command: jslint [options] file
# [options] are defined in the source file:
# The file can contain a line beginning by:
# // -*- jslint: [options] -*-
# If there is several such lines, only the first is used. Example:
# // -*- jslint: --sloppy --maxlen 80 --predef hex_sha256 -*-
# [options] are defined at the top of the source file:
# Example:
# /*jslint indent: 2, maxlen: 80 */
# /*global hex_sha256: true, jQuery: true */
lint
:
bash
-c
"result=0 ; for file in
$
(LINT_FILES:%=
$(FILE_DIR)
/%.js)
$
(STORAGE_FILES:%=
$(STORAGE_DIR)
/%.js) ; do out=
\"\$
$
(
$(LINT_CMD)
\$
$
(grep '^// *-
\*
- *jslint: .* -
\*
-'
\$
$file
| head -1 | sed 's/^
\/\/
*-
\*
- *jslint:
\(
.*
\)
-
\*
-/
\1
/')
\$
$file
)
\"
; res=
\$
$?
; [
\$
$res
!= 0 ] && echo
\"\$
$out
\"
; [
\$
$res
-gt
\$
$result
] && result=
\$
$res
; done ; exit
\$
$result
;"
$(LINT_CMD)
--
$
(
LINT_FILES:%
=
$(FILE_DIR)
/%.js
)
.phony
:
clean
clean
:
...
...
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