-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile~
executable file
·118 lines (92 loc) · 3.56 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
112
113
114
115
116
117
# Set the source directory
srcdir = src/
# Create the list of modules
modules = ${srcdir}jquery.inherit-1.1.1.js\
${srcdir}jquery.json-2.2.min.js\
${srcdir}jquery.tinysort.js\
${srcdir}jquery.tooltip.js\
${srcdir}jquery.piemenu.js\
${srcdir}jquery.tag-it.js\
${srcdir}jquery.spin.js\
${srcdir}jquery.maphilight.min.js\
${srcdir}jquery-ui-1.8.6.custom.min.js\
${srcdir}jquery-jtemplates.js\
${srcdir}purl.js\
${srcdir}vi2.annotation.assessment.js\
${srcdir}vi2.annotation.hyperlinks.js\
${srcdir}vi2.annotation.comments.js\
${srcdir}vi2.annotation.toc.js\
${srcdir}vi2.annotation.simultaneous-media.js\
${srcdir}vi2.core.annotation.js\
${srcdir}vi2.core.annotated-timeline.js\
${srcdir}vi2.core.clock.js\
${srcdir}vi2.core.database.js\
${srcdir}vi2.core.log.js\
${srcdir}vi2.core.observer.js\
${srcdir}vi2.core.parser.js\
${srcdir}vi2.core.utils.js\
${srcdir}vi2.core.videoplayer.js\
${srcdir}vi2.core.videoManager.js\
${srcdir}vi2.core.metadata.js\
${srcdir}vi2.player.playback-speed.js\
${srcdir}vi2.player.loop.js\
${srcdir}vi2.player.sharing.js\
${srcdir}vi2.player.zoom.js\
${srcdir}vi2.player.skip-back.js\
${srcdir}vi2.player.temporal-bookmarks.js\
${srcdir}vi2.related-videos.js\
${srcdir}vi2.viewing-history.js\
# ${srcdir}vi2.utils.maintanance.js\
slides = ./data-slides-raw.json\
vi2 = ${srcdir}vi2.annotation.assessment.js\
${srcdir}vi2.annotation.hyperlinks.js\
${srcdir}vi2.annotation.comments.js\
${srcdir}vi2.annotation.toc.js\
${srcdir}vi2.annotation.simultaneous-media.js\
${srcdir}vi2.core.annotation.js\
${srcdir}vi2.core.annotated-timeline.js\
${srcdir}vi2.core.clock.js\
${srcdir}vi2.core.database.js\
${srcdir}vi2.core.log.js\
${srcdir}vi2.core.observer.js\
${srcdir}vi2.core.parser.js\
${srcdir}vi2.core.utils.js\
${srcdir}vi2.core.videoplayer.js\
${srcdir}vi2.core.metadata.js\
${srcdir}vi2.player.playback-speed.js\
${srcdir}vi2.player.loop.js\
${srcdir}vi2.player.sharing.js\
${srcdir}vi2.player.zoom.js\
${srcdir}vi2.player.skip-back.js\
${srcdir}vi2.player.temporal-bookmarks.js\
${srcdir}vi2.related-videos.js\
${srcdir}vi2.viewing-history.js\
#${srcdir}vi-videolab.js
# Bundle all of the modules into vi-two.js
bundle: ${modules}
cat $^ > vi-two.js
# Compress al of the modules into vi-two.min.js
compress: ${modules}
cat $^ > vi-two.js
java -jar /usr/bin/compiler.jar --js vi-two.js --js_output_file vi-two.min.js
# minimize slides data
min: $(slides)
cat $^ | tr '\n' ' ' > ./data-slides.min.json
test: ${vi2}
jshint $^
# generate documentation of vi-two
# setup jsdoc:
# 1) JSDOCDIR="$HOME/Documents/www/elearning/vi2/vi-two/tools/jsdoc/jsdoc-toolkit"
# 2) JSDOCTEMPLATEDIR="$JSDOCDIR/templates/jsdoc"
# 3) make documentation
# Manual: http://usejsdoc.org/tags-requires.html
# Result: file:///home/abb/Documents/www2/vi-two/doc/symbols/VI-TWO.html
doc: $(vi2)
#cat $^ > vi2doc.js
java -jar tools/jsdoc/jsdoc-toolkit/jsrun.jar tools/jsdoc/jsdoc-toolkit/app/run.js -a -t=tools/jsdoc/jsdoc-toolkit/templates/jsdoc $^
# copy docs to the dedicated folder
cp -r tools/jsdoc/jsdoc-toolkit/out/jsdoc/* doc/
#
iwrm: ${modules}
cat $^ > examples/iwrm/js/vi-two.js
java -jar /usr/bin/compiler.jar --js examples/iwrm/js/vi-two.js --js_output_file examples/iwrm/js/vi-two.min.js