Makefile: add sample configs

Signed-off-by: Drew DeVault <sir@cmpwn.com>
This commit is contained in:
Drew DeVault 2024-03-28 10:55:57 +01:00
parent f672a49edd
commit 1fb435754f

View File

@ -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)