From 3098484d9d8ab3becd6d82297c13963f359460f4 Mon Sep 17 00:00:00 2001 From: cbdev Date: Wed, 1 Jan 2020 20:16:52 +0100 Subject: Do not install default config if already present (Fixes #43) --- Makefile | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Makefile') 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 -- cgit v1.2.3