-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
47 lines (38 loc) · 1.11 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
.PHONY: test short-test cron etc deploy vendor
etc: cron /etc/logrotate.d/viroverse
cron:
crontab etc/crontab
/etc/logrotate.d/viroverse: etc/logrotate
@if [[ `readlink $@` == $(PWD)/$< ]]; then \
echo "`readlink $@` -> $<"; \
else \
echo -e "Please install logrotate config:\n ln -sv $(PWD)/$< $@"; \
exit 1; \
fi
etc/logrotate:
chmod a+r $<
chmod a+rx `dirname $<`
test:
REMOTE_USER=vverse ./vv prove -w t/*.t
deploy:
scripts/deploy
vendor_js := \
angular/angular.min.js \
angular-resource/angular-resource.min.js \
angular-filter/dist/angular-filter.min.js \
angular-ui-bootstrap/dist/ui-bootstrap-tpls.js \
clipboard/dist/clipboard.min.js \
d3/d3.min.js \
datalib/datalib.min.js \
sortablejs/Sortable.min.js \
upload-list/upload-list.js \
upload-list/angular-upload-list.js \
vega/vega.min.js \
vega-embed/vega-embed.min.js \
angular-file-model/angular-file-model.js
vendor_css := \
upload-list/upload-list.css
vendor:
yarn install
@cp -fv $(addprefix node_modules/, $(vendor_js)) root/static/javascripts/vendor/
@cp -fv $(addprefix node_modules/, $(vendor_css)) root/static/stylesheets/vendor/