aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFlorian Hülsmann <fh@cbix.de>2022-03-26 00:18:33 +0100
committerFlorian Hülsmann <fh@cbix.de>2022-03-26 00:18:33 +0100
commit74248e21095c1bc799c900ca9487f81f99bf5bf5 (patch)
treeaf2be746ee296dc8fc5643e83a91d769c8b2960b
parentc14b8121b057b238c17f89995094d57a612f946f (diff)
downloadmidimonster-74248e21095c1bc799c900ca9487f81f99bf5bf5.tar.gz
midimonster-74248e21095c1bc799c900ca9487f81f99bf5bf5.tar.bz2
midimonster-74248e21095c1bc799c900ca9487f81f99bf5bf5.zip
fix make install not installing the config if DESTDIR is provided but the file exists on system
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
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