From 5237a70f3e26fd78327fd1f2ded640ec7bf5143d Mon Sep 17 00:00:00 2001 From: Enno Tensing Date: Sat, 26 Jul 2025 19:26:21 +0200 Subject: [PATCH] make: Add makefile to support install Signed-off-by: Enno Tensing --- Makefile | 20 ++++++++++++++++++++ REUSE.toml | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1d100d4 --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ +DESTDIR ?= /usr +BINDIR ?= $(DESTDIR)/bin +VARDIR ?= /var/lib/containerctl +GENERATEDIR ?= $(VARDIR)/generate +CONFIGDIR ?= $(VARDIR)/configs +CONTAINERDIR ?= $(VARDIR)/containers + +install: + mkdir -p \ + $(PREFIX)/$(GENERATEDIR) \ + $(PREFIX)/$(CONFIGDIR) \ + $(PREFIX)/$(CONTAINERDIR) \ + $(PREFIX)/$(BINDIR) + install -m755 containerctl $(PREFIX)/$(BINDIR) + cp -t $(PREFIX)/$(GENERATEDIR) \ + generate/container.py \ + generate/log.py \ + generate/generate.py + +.PHONY: install diff --git a/REUSE.toml b/REUSE.toml index 5c418a1..dbbebe0 100644 --- a/REUSE.toml +++ b/REUSE.toml @@ -1,6 +1,6 @@ version = 1 [[annotations]] -path = [".gitignore", "example.container", "ruff.toml"] +path = [".gitignore", "example.container", "ruff.toml", "Makefile"] precedence = "aggregate" SPDX-FileCopyrightText = "2025 Enno Tensing " SPDX-License-Identifier = "CC0-1.0"