forked from inaes-tic/mbc-caspa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
48 lines (31 loc) · 1.03 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
export MOCHA=node_modules/mocha/bin/mocha
export NODE_CONFIG_DIR ?= $(PWD)/node_modules/mbc-common/config
all: update serve
mos: locale/es/LC_MESSAGES/messages.mo
locale/es/LC_MESSAGES/messages.mo:
./bin/extract_po.sh
./bin/update_languages.sh
./bin/compile-json locale locale
submodules: sparkmd5 bootstrap knockout-sortable
git submodule update
sparkmd5: vendor/sparkmd5/spark-md5.js
bootstrap: vendor/bootstrap/js/bootstrap-typeahead.js
knockout-sortable: vendor/knockout-sortable/build/knockout-sortable.js
vendor/bootstrap/js/bootstrap-typeahead.js vendor/sparkmd5/spark-md5.js vendor/knockout-sortable/build/knockout-sortable.js:
git submodule update --init
node_modules:
mkdir -p $@
npm:
npm install
update: submodules npm mos
test:
${MOCHA} --reporter spec --timeout 3000 test
test_debug:
${MOCHA} --debug-brk --reporter spec test
serve: update
node server.js
serve_noweb:
node server.js
serve_debug:
node --debug-brk server.js
.PHONY: npm submodules serve sparkmd5 bootstrap test test_debug serve_noweb serve_debug