Commit 2f4aac3df2
Unsigned
Layout: unified · split
Makefile +6 −1
| @@ -12,7 +12,7 @@ SOURCES := $(wildcard src/*.rs src/bar_items/*.rs src/commands/*.rs src/room/*.r | ||
| 12 | 12 | |
| 13 | 13 | PROFILE ?= release |
| 14 | 14 | |
| 15 | .PHONY: install install-user uninstall uninstall-user install-dir install-user-dir lint check all help deb | |
| 15 | .PHONY: install install-user uninstall uninstall-user install-dir install-user-dir lint check clean all help deb | |
| 16 | 16 | |
| 17 | 17 | all: help |
| 18 | 18 | |
| @@ -49,6 +49,11 @@ lint: ## Lint issues with clippy | ||
| 49 | 49 | check: ## Run test suite |
| 50 | 50 | cargo test --release |
| 51 | 51 | |
| 52 | clean: ## Remove build artifacts | |
| 53 | cargo clean | |
| 54 | rm -rf target/debian | |
| 55 | -find src -name '*.rs.bk' -delete 2>/dev/null || true | |
| 56 | ||
| 52 | 57 | # Get the base package version from Cargo.toml (fallback when no git tags are found) |
| 53 | 58 | CARGO_VERSION := $(shell grep -m1 '^version = ' Cargo.toml | sed 's/version = "\(.*\)"/\1/') |
| 54 | 59 | |