forked from datawrapper/datawrapper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
30 lines (20 loc) · 933 Bytes
/
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
GENERATED_FILES = \
dw.js/dw-2.0.js \
www/static/css/datawrapper.css \
www/static/css/chart.base.css
all: $(GENERATED_FILES)
clean:
rm -f -- $(GENERATED_FILES)
dw.js/dw-2.0.js: dw.js/src/*.js
cd dw.js && grunt
assets: www/static/css/datawrapper.css www/static/css/chart.base.css
# www/static/js/dw-2.0.js: dw.js/dw-2.0.js
# @cp dw.js/dw-2.0.js www/static/js/
# www/static/js/dw-2.0.min.js: dw.js/dw-2.0.js
# @php -r "require 'vendor/autoload.php'; file_put_contents('www/static/js/dw-2.0.min.js', \JShrink\Minifier::minify(file_get_contents('dw.js/dw-2.0.js')));"
messages:
scripts/update-messages.sh
www/static/css/datawrapper.css: assets/styles/datawrapper/* assets/styles/datawrapper/**/* assets/styles/datawrapper/**/**/*
node_modules/.bin/lessc assets/styles/datawrapper/main.less > $@
www/static/css/chart.base.css: assets/styles/chart.base/*
node_modules/.bin/lessc assets/styles/chart.base/main.less > $@