Files
numa/Makefile
Razvan Dimescu e04afe5b70 add cargo-audit to Makefile lint target
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-21 10:53:09 +02:00

36 lines
727 B
Makefile

.PHONY: all build lint fmt check audit test clean deploy
all: lint build
build:
cargo build
lint: fmt check audit
fmt:
cargo fmt --check
check:
cargo clippy -- -D warnings
audit:
cargo audit
test:
cargo test
clean:
cargo clean
deploy:
cargo build --release
sudo cp target/release/numa /usr/local/bin/numa
ifeq ($(shell uname -s),Darwin)
sudo codesign -f -s - /usr/local/bin/numa
sudo kill $$(pgrep -f /usr/local/bin/numa) 2>/dev/null || true
else
sudo systemctl restart numa 2>/dev/null || sudo kill $$(pgrep -f /usr/local/bin/numa) 2>/dev/null || true
endif
@sleep 1
@dig @127.0.0.1 google.com +short +time=3 > /dev/null && echo "Service restarted successfully" || echo "Warning: DNS not responding yet"