From 74248e21095c1bc799c900ca9487f81f99bf5bf5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20H=C3=BClsmann?= Date: Sat, 26 Mar 2022 00:18:33 +0100 Subject: fix make install not installing the config if DESTDIR is provided but the file exists on system --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index cc73718..4e5161e 100644 --- a/Makefile +++ b/Makefile @@ -101,7 +101,7 @@ install: install -m 0644 configs/* "$(DESTDIR)$(EXAMPLES)" ifdef DEFAULT_CFG # Only install the default configuration if it is not already present to avoid overwriting it -ifeq (,$(wildcard $(DEFAULT_CFG))) +ifeq (,$(wildcard $(DESTDIR)$(DEFAULT_CFG))) install -Dm 0644 monster.cfg "$(DESTDIR)$(DEFAULT_CFG)" endif endif -- cgit v1.2.3