From 82fa15c00f4bd6123db24db905362c31c0c99875 Mon Sep 17 00:00:00 2001 From: Nicolas MASSE Date: Wed, 3 Dec 2025 17:08:57 +0100 Subject: [PATCH] add check --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 0116587..eb7f02e 100644 --- a/Makefile +++ b/Makefile @@ -16,6 +16,7 @@ TARGET_SYSTEMD_FILES = $(addprefix /etc/systemd/system/, $(SYSTEMD_FILES)) TARGET_CONFIG_FILES = $(patsubst config/%, /etc/quadlets/$(PROJECT_NAME)/%, $(CONFIG_FILES)) pre-requisites: + @test -n "$(PARENT_DIR)" || (echo "Do not run this Makefile from the top directory!" >&2; exit 1) @test "$$(id -u)" -eq 0 || (echo "This Makefile must be run as root" >&2; exit 1) all: install