1
1
# Variables
2
- PKG = github.com/habedi/template-rust-project
2
+ PKG = github.com/habedi/graphina
3
3
BINARY_NAME = $(or $(PROJ_BINARY ) , $(notdir $(PKG ) ) )
4
4
BINARY = target/release/$(BINARY_NAME )
5
5
PATH := /snap/bin:$(PATH )
6
- DEBUG_PROJ = 1
6
+ DEBUG_GRAPHINA = 1
7
+ RUST_LOG = info
8
+ RUST_BACKTRACE = 1
7
9
8
10
# Default target
9
11
.DEFAULT_GOAL := help
@@ -20,22 +22,22 @@ format: ## Format Rust files
20
22
.PHONY : test
21
23
test : format # # Run tests
22
24
@echo " Running tests..."
23
- DEBUG_PROJ =$(DEBUG_PROJ ) cargo test -- --nocapture
25
+ DEBUG_GRAPHINA =$(DEBUG_GRAPHINA ) cargo test -- --nocapture
24
26
25
27
.PHONY : coverage
26
28
coverage : format # # Generate test coverage report
27
29
@echo " Generating test coverage report..."
28
- DEBUG_PROJ =$(DEBUG_PROJ ) cargo tarpaulin --out Xml --out Html
30
+ DEBUG_GRAPHINA =$(DEBUG_GRAPHINA ) cargo tarpaulin --out Xml --out Html
29
31
30
32
.PHONY : build
31
33
build : format # # Build the binary for the current platform
32
34
@echo " Building the project..."
33
- DEBUG_PROJ =$(DEBUG_PROJ ) cargo build --release
35
+ DEBUG_GRAPHINA =$(DEBUG_GRAPHINA ) cargo build --release
34
36
35
37
.PHONY : run
36
38
run : build # # Build and run the binary
37
39
@echo " Running the $( BINARY) binary..."
38
- DEBUG_PROJ =$(DEBUG_PROJ ) ./$(BINARY )
40
+ DEBUG_GRAPHINA =$(DEBUG_GRAPHINA ) ./$(BINARY )
39
41
40
42
.PHONY : clean
41
43
clean : # # Remove generated and temporary files
@@ -60,7 +62,7 @@ install-deps: install-snap ## Install development dependencies
60
62
.PHONY : lint
61
63
lint : format # # Run linters on Rust files
62
64
@echo " Linting Rust files..."
63
- DEBUG_PROJ =$(DEBUG_PROJ ) cargo clippy -- -D warnings
65
+ DEBUG_GRAPHINA =$(DEBUG_GRAPHINA ) cargo clippy -- -D warnings
64
66
65
67
.PHONY : publish
66
68
publish : # # Publish the package to crates.io (requires CARGO_REGISTRY_TOKEN to be set)
@@ -70,7 +72,7 @@ publish: ## Publish the package to crates.io (requires CARGO_REGISTRY_TOKEN to b
70
72
.PHONY : bench
71
73
bench : # # Run benchmarks
72
74
@echo " Running benchmarks..."
73
- DEBUG_PROJ =$(DEBUG_PROJ ) cargo bench
75
+ DEBUG_GRAPHINA =$(DEBUG_GRAPHINA ) cargo bench
74
76
75
77
.PHONY : audit
76
78
audit : # # Run security audit on Rust dependencies
0 commit comments