Commit 2f4aac3df2

2f4aac3df2b0cec8aad0cae8711202b857e872f3

parent: c7ffbb7162

Unsigned

Sandro Santilli (AI assisted) <strk@kbt.io> · 2026-07-29 19:59 UTC

build: add clean target to Makefile

Adds a 'clean' target that runs cargo clean, removes the Debian build
staging directory (target/debian), and deletes any *.rs.bk backup
files left behind by editors.

Assisted-By: MiniMax-M3 via ferrum 0.7.3

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
13PROFILE ?= release 13PROFILE ?= 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
17all: help 17all: help
18 18
@@ -49,6 +49,11 @@ lint: ## Lint issues with clippy
49check: ## Run test suite 49check: ## Run test suite
50 cargo test --release 50 cargo test --release
51 51
52clean: ## Remove build artifacts
53 cargo clean
54 rm -rf target/debian
55 -find src -name '*.rs.bk' -delete 2>/dev/null || true
56
52# Get the base package version from Cargo.toml (fallback when no git tags are found) 57# Get the base package version from Cargo.toml (fallback when no git tags are found)
53CARGO_VERSION := $(shell grep -m1 '^version = ' Cargo.toml | sed 's/version = "\(.*\)"/\1/') 58CARGO_VERSION := $(shell grep -m1 '^version = ' Cargo.toml | sed 's/version = "\(.*\)"/\1/')
54 59