-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
43 lines (35 loc) · 924 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
31
32
33
34
35
36
37
38
39
40
41
42
43
PATH_DISPLAY_TRIGGER=../displayTrigger/display
PATH_LIBS=../libs
PATH_MULTISOCKETSERVER=../multisocketServer
help:
# stageViewer
# - install - Install node_modules and link to $(PATH_DISPLAY_TRIGGER)
# - run - Dev server
# - test - Karama tests in chrome
# - clean - Reset to clean checkout
node_modules:
npm install
node_modules/calaldees_libs:
npm link $(PATH_LIBS)
node_modules/multisocketServer:
npm link $(PATH_MULTISOCKETSERVER)
node_modules/displayTrigger:
npm link $(PATH_DISPLAY_TRIGGER)
.editorconfig:
ln -s $(PATH_DISPLAY_TRIGGER)/$@ $@
.PHONY: install
install: node_modules node_modules/calaldees_libs node_modules/multisocketServer node_modules/displayTrigger .editorconfig
run: install
npm run start
build: install
npm run build
test: install
npm run test
.PHONY: cloc
cloc:
cloc --vcs=git
clean:
rm -rf node_modules/
rm -rf static/
rm -rf *.log
rm .editorconfig