-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
111 lines (94 loc) · 2.48 KB
/
Makefile
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# See the README for installation instructions.
JS_UGLIFY = uglifyjs
JSHINT = jshint
# CSSHINT = csslint
all: \
version \
vizgrimoire.js \
jshint \
uglify \
vizgrimoire.css
.INTERMEDIATE vizgrimoire.js: \
vizgrimoire.deps.js \
vizgrimoire.core.js
.INTERMEDIATE vizgrimoire.css: \
vizgrimoire.deps.css \
vizgrimoire.core.css
vizgrimoire.deps.js: \
src/License.js \
src/envision.js \
src/d3-treemap.min.js \
src/jquery.gridster.js
vizgrimoire.core.js: \
src/version.js \
src/Envision_Report.js \
src/Loader.js \
src/DataProcess.js \
src/Utils.js \
src/HTMLComposer.js \
src/Convert.js \
src/Report.js \
src/DataSource.js \
src/Viz.js \
src/IRC.js \
src/ITS.js \
src/ITS_1.js \
src/MediaWiki.js \
src/MLS.js \
src/SCM.js \
src/SCR.js \
src/People.js \
src/Downloads.js \
src/QAForums.js \
src/DockerHub.js \
src/Releases.js \
src/Meetup.js \
src/Identity.js \
src/Charts.js \
src/Tables.js \
src/extension/demographics.js \
src/extension/definitions.js
vizgrimoire.deps.css: \
src/envision.min.css \
src/jquery.gridster.css
vizgrimoire.core.css: \
src/newreport.css \
src/report.css \
src/report-envision.css
%.min.js: %.js Makefile
@rm -f $@
#$(JS_UGLIFY) -o $@ -c --max-line-len $<
#$(JS_UGLIFY) -o $@ $<
$(JS_UGLIFY) -o $@ vizgrimoire.js
uglify: vizgrimoire.js
$(JS_UGLIFY) -o vizgrimoire.min.js vizgrimoire.js
vizgrimoire%js: Makefile
echo $@
@rm -f $@
@cat $(filter %.js,$^) > $@
#@cat $(filter %.js,$^) > [email protected]
# $(JS_UGLIFY) -o $@ [email protected]
# @rm [email protected]
# @chmod a-w $@
version: vizgrimoire.core.js
@echo "\\n" >> $<
@echo "vizjslib_git_revision='"`git rev-parse HEAD`"';" >> $<
@echo "vizjslib_git_tag='"`git describe --tags`"';" >> $<
@echo "vizjslib_git_revision='"`git rev-parse HEAD`"';" > "test/jasmine/version.js"
@echo "vizjslib_git_tag='"`git describe --tags`"';" >> "test/jasmine/version.js"
@echo "vizjslib_git_revision='"`git rev-parse HEAD`"';" > "src/version.js"
@echo "vizjslib_git_tag='"`git describe --tags`"';" >> "src/version.js"
jshint: vizgrimoire.core.js
@echo "JSHINT Checking ..."
@$(JSHINT) $(filter %.js,$^)
test: all
cd test/jasmine; jasmine-headless-webkit -j jasmine.yml -c
cd ../..
testci: all
cd test/jasmine; xvfb-run jasmine-headless-webkit -j jasmine.yml -c
cd ../..
vizgrimoire%css: Makefile
@rm -f $@
@cat $(filter %.css,$^) > $@
clean:
rm -f vizgrimoire*.js vizgrimoire*.css