From 6da6ac2505672dce7399f9951d0c08ccf556bd08 Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Tue, 18 Aug 2026 15:39:48 +0200 Subject: [PATCH] conf / scripts: Fix unprivileged "make install" Unprivileged "make install" currently returns an error. That looks bad. It actually is not a real problem, because unprivileged "make install" installs files into locations that are good for nothing, in the sense that they don't constitute a meaningful or usable hierarchy of installed files. Debugging / inspecting the install machinery itself is a valid use case, though, and it's easier to explain to the unsuspecting user that unprivileged installation is something akin to shooting range training than why "make install" outright errors out, so fix the error messages. Signed-off-by: Jan Lindemann --- conf/bash-completion.d/Makefile | 8 ++++---- scripts/usr-bin/Makefile | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/conf/bash-completion.d/Makefile b/conf/bash-completion.d/Makefile index a4772e58..8b18976d 100644 --- a/conf/bash-completion.d/Makefile +++ b/conf/bash-completion.d/Makefile @@ -1,8 +1,8 @@ -TOPDIR = ../.. +TOPDIR = ../.. -INSTALL_CFGDIR = $(ENV_PREFIX)/usr/share/bash-completion/completions -LOCAL_CFG = $(filter-out Makefile,$(wildcard *)) -PACKAGE_INSTALL_DIR = false +INSTALL_CFGDIR = $(ROOT_PREFIX)/usr/share/bash-completion/completions +LOCAL_CFG = $(filter-out Makefile,$(wildcard *)) +PACKAGE_INSTALL_DIR = false include $(TOPDIR)/make/proj.mk include $(JWBDIR)/make/conf.mk diff --git a/scripts/usr-bin/Makefile b/scripts/usr-bin/Makefile index 69c37ad1..8c937984 100644 --- a/scripts/usr-bin/Makefile +++ b/scripts/usr-bin/Makefile @@ -1,6 +1,6 @@ TOPDIR = ../.. -TARGET_DIR = $(ENV_PREFIX)/usr/bin +TARGET_DIR = $(ROOT_PREFIX)/usr/bin include $(TOPDIR)/make/proj.mk include $(JWBDIR)/make/defs.mk