landstrip 0.2.3

Landlock based agent sandbox with parametrized state
# SPDX-License-Identifier: LGPL-2.1-or-later
# Copyright (c) 2026 Jarkko Sakkinen

PREFIX ?= /usr/local
BINDIR ?= $(PREFIX)/bin
MANDIR ?= $(PREFIX)/share/man
CARGO ?= cargo
INSTALL ?= install

.PHONY: all check test clippy install clean

all:
	$(CARGO) build

check:
	$(CARGO) build
	$(CARGO) test
	$(CARGO) clippy --all-targets --all-features

test:
	$(CARGO) test

clippy:
	$(CARGO) clippy --all-targets --all-features

install:
	$(CARGO) build --release
	$(INSTALL) -d "$(DESTDIR)$(BINDIR)" "$(DESTDIR)$(MANDIR)/man1"
	$(INSTALL) -m 755 target/release/landstrip "$(DESTDIR)$(BINDIR)/landstrip"
	$(INSTALL) -m 644 man/man1/landstrip.1 "$(DESTDIR)$(MANDIR)/man1/landstrip.1"

clean:
	$(CARGO) clean