forked from bramp/js-sequence-diagrams
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (29 loc) · 798 Bytes
/
Makefile
File metadata and controls
37 lines (29 loc) · 798 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
.PHONY : all test clean lint
all: sequence-diagram-min.js
test: grammar.js
node grammar.js test
clean:
rm sequence-diagram-min.js* grammar.js diagram-grammar.js
lint:
jshint src/*.js
diagram-grammar.js: src/diagram.js grammar.js
#
# Compiling grammar
#
jspp src/diagram.js > diagram-grammar.js
sequence-diagram-min.js: diagram-grammar.js src/jquery-plugin.js fonts/daniel/daniel_700.font.js src/sequence-diagram.js
#
# Ignore warnings from diagram-grammar.js
#
uglifyjs \
diagram-grammar.js src/jquery-plugin.js fonts/daniel/daniel_700.font.js \
src/sequence-diagram.js \
-o sequence-diagram-min.js \
-c --comments \
--source-map sequence-diagram-min.js.map
#
# Copy minified file to site
#
cp sequence-diagram-min.js _site/
grammar.js: src/grammar.jison
jison $<