-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
61 lines (47 loc) · 1.41 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
SRC = $(wildcard src/*.js)
LIB = $(SRC:src/%.js=lib/%.js)
#Jquery is required by w2ui and that pull it in via bower.
LIB += lib/browser-polyfill.js lib/jquery.js lib/jquery-ui.min.js lib/ui/datepicker.js
CSS = css/ui/datepicker.css css/ui/jquery-ui.min.css css/ui/images/ui-icons_444444_256x240.png
THEME = base
all: lib css
css: $(CSS)
lib: $(LIB)
#
# Bower and Node modules/ polyfills which need to copied into
# our distribution.
#
lib/browser-polyfill.js: node_modules/babel-core/browser-polyfill.js
mkdir -p $(@D)
cp $< $@
lib/jquery.js: bower_components/jquery/dist/jquery.js
mkdir -p $(@D)
cp $< $@
lib/jquery-ui.min.js: bower_components/jquery-ui/jquery-ui.min.js
mkdir -p $(@D)
cp $< $@
lib/ui/datepicker.js: bower_components/jquery-ui/ui/datepicker.js
mkdir -p $(@D)
cp $< $@
css/ui/datepicker.css: bower_components/jquery-ui/themes/$(THEME)/datepicker.css
mkdir -p $(@D)
cp $< $@
css/ui/jquery-ui.min.css: bower_components/jquery-ui/themes/$(THEME)/jquery-ui.min.css
mkdir -p $(@D)
cp $< $@
css/ui/images/ui-icons_444444_256x240.png: bower_components/jquery-ui/themes/$(THEME)/images/ui-icons_444444_256x240.png
mkdir -p $(@D)
cp $< $@
#
# A Generic rule to build locally written J
#
lib/%.js: src/%.js
mkdir -p $(@D)
babel -s true $< -o $@
#
# Get and node / bower files which are references.
#
node_modules/babel-core/browser-polyfill.js:
npm install babel-core
bower_components/% :
bower install