-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
56 lines (40 loc) · 1.17 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
build:
rm -rf exports
npm run build
deploy: build
$(if $(local),$(call _deploy,$(local)/node_modules/rules-config))
deploy-to-avni-client-only:
$(call _deploy,../avni-client/packages/openchs-android/node_modules/rules-config)
deploy-to-avni-client: build deploy-to-avni-client-only
deploy-to-avni-webapp-only:
$(call _deploy,../avni-webapp/node_modules/rules-config)
deploy-to-avni-webapp: build deploy-to-avni-webapp-only
deploy-to-project: build deploy-to-project-only
deploy-to-project-only:
ifndef project
@echo "Provde the project variable"
exit 1
endif
$(call _deploy,../$(project)/node_modules/rules-config)
deploy-to-rules-server-only:
$(call _deploy,../rules-server/node_modules/rules-config)
deploy-to-rules-server: build deploy-to-rules-server-only
deploy-as-source:
$(if $(local),$(call _deploy_as_source,$(local)/node_modules/rules-config))
define _deploy
rm -rf $1/*
cp exports/infra.js exports/rules.js exports/package.json $1/
endef
define _deploy_as_source
rm -rf $1/*
cp ./infra.js ./rules.js ./package.json $1/
cp -r src $1/
endef
check-model-version:
npm search openchs-models
deps:
npm install
tests:
npm run test
clean:
rm -rf node_modules