-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
50 lines (38 loc) · 1.2 KB
/
Makefile
File metadata and controls
50 lines (38 loc) · 1.2 KB
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
# Makefile
# =======================================
# Root Makefile: Orchestrator
# =======================================
### Include submodule Makefiles
include backend/Makefile
include aws/Makefile
# =======================================
# Directory-specific Commands
# =======================================
AWS_MAKE = $(MAKE) -C aws
BACKEND_MAKE = $(MAKE) -C backend
# AWS commands delegation
aws-%:
@echo "Delegating to aws/$*..."
$(AWS_MAKE) $*
# # Backend commands delegation
be-%:
@echo "Delegating to backend/$*..."
$(BACKEND_MAKE) $*
# =======================================
# Utility Commands
# =======================================
# Format all code (including fixing simple style issues)
format:
@echo "Formatting all code with cargo fmt..."
cargo fmt --all
# Lint all code with clippy and suggest fixes where possible
lint:
@echo "Linting all code with cargo clippy..."
cargo clippy --workspace --all-targets --all-features --fix --allow-dirty --allow-staged -- -D warnings
# Format and lint
pretty: format lint
# =======================================
# Project Orchestration
# =======================================
run-backend:
cargo watch -p backend -w backend/src -s 'make be-run'