From 1fb435754f5fc9cdc70da84bfcb40a2826447e6f Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Thu, 28 Mar 2024 10:55:57 +0100 Subject: [PATCH] Makefile: add sample configs Signed-off-by: Drew DeVault --- src/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index 38810d2d7..0739466b6 100644 --- a/src/Makefile +++ b/src/Makefile @@ -56,6 +56,7 @@ endif PREFIX?=/usr/local INSTALL_BIN=$(DESTDIR)$(PREFIX)/bin +INSTALL_SHARE=$(DESTDIR)$(PREFIX)/share/redict INSTALL=install PKG_CONFIG?=pkg-config @@ -506,10 +507,12 @@ helgrind: $(MAKE) OPTIMIZATION="-O0" MALLOC="libc" CFLAGS="-D__ATOMIC_VAR_FORCE_SYNC_MACROS" REDICT_CFLAGS="-I/usr/local/include" REDICT_LDFLAGS="-L/usr/local/lib" install: all - @mkdir -p $(INSTALL_BIN) + @mkdir -p $(INSTALL_BIN) $(INSTALL_SHARE) $(call MAKE_INSTALL,$(REDICT_SERVER_NAME),$(INSTALL_BIN)) $(call MAKE_INSTALL,$(REDICT_BENCHMARK_NAME),$(INSTALL_BIN)) $(call MAKE_INSTALL,$(REDICT_CLI_NAME),$(INSTALL_BIN)) + $(call MAKE_INSTALL,../redict.conf,$(INSTALL_SHARE)) + $(call MAKE_INSTALL,../sentinel.conf,$(INSTALL_SHARE)) @ln -sf $(REDICT_SERVER_NAME) $(INSTALL_BIN)/$(REDICT_CHECK_RDB_NAME) @ln -sf $(REDICT_SERVER_NAME) $(INSTALL_BIN)/$(REDICT_CHECK_AOF_NAME) @ln -sf $(REDICT_SERVER_NAME) $(INSTALL_BIN)/$(REDICT_SENTINEL_NAME)