aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2020-01-01 20:16:52 +0100
committercbdev <cb@cbcdn.com>2020-01-01 20:16:52 +0100
commit3098484d9d8ab3becd6d82297c13963f359460f4 (patch)
treed881be1bd58858d5896d70bac8d18267e0757a24 /Makefile
parent87fe68ef7d929b2f79e695df649b374fe0e2c572 (diff)
downloadmidimonster-3098484d9d8ab3becd6d82297c13963f359460f4.tar.gz
midimonster-3098484d9d8ab3becd6d82297c13963f359460f4.tar.bz2
midimonster-3098484d9d8ab3becd6d82297c13963f359460f4.zip
Do not install default config if already present (Fixes #43)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 990aec3..27f7994 100644
--- a/Makefile
+++ b/Makefile
@@ -79,8 +79,10 @@ install:
install -d "$(DESTDIR)$(EXAMPLES)"
install -m 0644 configs/* "$(DESTDIR)$(EXAMPLES)"
ifdef DEFAULT_CFG
+ifeq (,$(wildcard $(DEFAULT_CFG)))
install -Dm 0644 monster.cfg "$(DESTDIR)$(DEFAULT_CFG)"
endif
+endif
sanitize: export CC = clang
sanitize: export CFLAGS += -g -Wall -Wpedantic -fsanitize=address -fsanitize=undefined -fno-omit-frame-pointer