Skip to content

Commit 74248e2

Browse files
committed
fix make install not installing the config if DESTDIR is provided but the file exists on system
1 parent c14b812 commit 74248e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ install:
101101
install -m 0644 configs/* "$(DESTDIR)$(EXAMPLES)"
102102
ifdef DEFAULT_CFG
103103
# Only install the default configuration if it is not already present to avoid overwriting it
104-
ifeq (,$(wildcard $(DEFAULT_CFG)))
104+
ifeq (,$(wildcard $(DESTDIR)$(DEFAULT_CFG)))
105105
install -Dm 0644 monster.cfg "$(DESTDIR)$(DEFAULT_CFG)"
106106
endif
107107
endif

0 commit comments

Comments
 (0)