/
Makefile
63 lines (45 loc) · 2.29 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
61
62
63
default: build
prepare-angular:
(cd angular; npm install)
build-angular:
(cd angular; ./node_modules/.bin/grunt build)
assets/index.html: angular/build/assets/index.html
cp $< $@
assets/vendor.js: angular/build/assets/vendor.js
cp $< $@
assets/vendor.js.map: angular/build/assets/vendor.js.map
cp $< $@
assets/styles.js: angular/build/assets/styles.js
cp $< $@
assets/styles.js.map: angular/build/assets/styles.js.map
cp $< $@
assets/index.js: angular/build/assets/index.js
cp $< $@
assets/index.js.map: angular/build/assets/index.js.map
cp $< $@
build-angular-assets: build-angular assets/index.html \
assets/index.js assets/index.js.map \
assets/styles.js assets/styles.js.map \
assets/vendor.js assets/vendor.js.map
.PHONY: prepare-angular build-angular build-angular-assets
assets/UserAuthenticator-deployment-instructions.txt: runtime/UserAuthenticator/descriptor.yaml runtime/UserAuthenticator/UserAuthenticator.js runtime/UserAuthenticator/descriptor.yaml runtime/context-local.yaml
twilio-runtime-utils -c runtime/context-local.yaml deploy runtime/UserAuthenticator/descriptor.yaml > $@
assets/CameraAuthenticator-deployment-instructions.txt: runtime/CameraAuthenticator/descriptor.yaml runtime/CameraAuthenticator/CameraAuthenticator.js runtime/CameraAuthenticator/descriptor.yaml runtime/context-local.yaml
twilio-runtime-utils -c runtime/context-local.yaml deploy runtime/CameraAuthenticator/descriptor.yaml > $@
assets/AlertGenerator-deployment-instructions.txt: runtime/AlertGenerator/descriptor.yaml runtime/AlertGenerator/AlertGenerator.js runtime/AlertGenerator/descriptor.yaml runtime/context-local.yaml
twilio-runtime-utils -c runtime/context-local.yaml deploy runtime/AlertGenerator/descriptor.yaml > $@
build-runtime: assets/UserAuthenticator-deployment-instructions.txt assets/CameraAuthenticator-deployment-instructions.txt assets/AlertGenerator-deployment-instructions.txt
.PHONY: build-runtime
prepare: prepare-angular
build: build-angular-assets # build-runtime
dev:
(cd angular; ./node_modules/.bin/grunt dev)
clean:
rm -rf angular/build/assets
full-clean: clean
rm -f angular/package-lock.json
rm -rf angular/node_modules
rm -rf angular/build
rebuild: clean build
full-rebuild: full-clean prepare build
.PHONY: default prepare build dev clean full-clean rebuild full-rebuild