1
0
Fork 0

make: Add makefile to support install

Signed-off-by: Enno Tensing <tenno@suij.in>
This commit is contained in:
Enno Tensing 2025-07-26 19:26:21 +02:00
parent ec8e088b3f
commit 5237a70f3e
Signed by: tenno
GPG key ID: 95265603BD36E66C
2 changed files with 21 additions and 1 deletions

20
Makefile Normal file
View file

@ -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

View file

@ -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 <tenno+containerctl@suij.in>"
SPDX-License-Identifier = "CC0-1.0"