Files
sized/Makefile
gamertan 5f0b11ea2e
Sized Linux checks / Linux AMD64 / Rust 1.88.0 (push) Successful in 4m52s
Sized Linux checks / Linux AMD64 / Rust 1.88.0 (pull_request) Successful in 4m56s
Repair release archives and document current Sized distribution
2026-10-10 03:51:35 -04:00

26 lines
545 B
Makefile

PREFIX ?= /usr/local
BINDIR = $(PREFIX)/bin
MANDIR = $(PREFIX)/share/man/man1
.PHONY: all build install clean help
all: build
build:
cargo build --locked --release
install: build
install -d $(BINDIR)
install -m 755 target/release/sized $(BINDIR)/sized
install -d $(MANDIR)
install -m 644 sized.1 $(MANDIR)/sized.1
clean:
cargo clean
help:
@echo "Usage:"
@echo " make build - Build the optimized binary"
@echo " make install - Install binary and man page (may require sudo)"
@echo " make clean - Remove build artifacts"