-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
50 lines (38 loc) · 1.07 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
## help: Prints this help message
help:
@echo "\nContacts CLI\nUsage: \n"
@sed -n "s/^##//p" ${MAKEFILE_LIST} | column -t -s ":" | sed -e "s/^/ /"
## build: Compile the current package
build:
@cargo build
## update: Update the dependencies of the current package
update:
@cargo update
## run: Run a binary of the local package
run:
@cargo run
## check: Analyze the current package and report errors, but don't build object files
check:
@cargo check --verbose
## release: Release the current package
release:
@cargo build --release
## clean: Clean the current package
clean:
@rm -rdf target/ Cargo.lock
## fmt: Format all Rust files of the current crate
fmt:
@cargo fmt
## test: Run the tests
test:
@cargo test --verbose
## clippy: Run cargo clippy for static ckecks
clippy:
@cargo clippy --all-targets --all-features --verbose
## start-db: Run docker-compose to start the db
start-db:
@docker-compose up -d
## stop-db: Run docker-compose to stop the db
stop-db:
@docker-compose down
.PHONY: help build update run check release clean fmt test clippy start-db stop-db