-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (30 loc) · 883 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
.PHONY: docs docs-open musl deploy-collector deploy-db deploy-server deploy-web deploy sync-virgo
# build with some more limitations
build:
cargo clippy -- -D clippy::missing_docs_in_private_items \
-D clippy::missing_safety_doc \
-D clippy::missing_panics_doc \
-D clippy::missing_errors_doc
cargo test
cargo build
docs:
cargo clippy
cargo doc --no-deps --document-private-items --all-features
docs-open:
cargo clippy
cargo doc --no-deps --document-private-items --all-features --open
debug:
cargo build
test:
#cargo test
release:
cargo build --release
deploy-server: test release
sudo rsync target/release/caph_server /opt/caph/server
sudo systemctl restart caph_server
deploy-web:
cd web; npm run build
sudo rsync --recursive --inplace --delete web/dist/ /opt/caph/web
deploy: deploy-server deploy-web
stop:
sudo systemctl stop caph_server