Skip to content

Commit

Permalink
Fix Makefile syntax
Browse files Browse the repository at this point in the history
Signed-off-by: Vitah Lin <[email protected]>
  • Loading branch information
vitahlin committed Apr 4, 2024
1 parent 2b0c20c commit ba81d4d
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -540,20 +540,20 @@ install: all
@ln -sf $(SERVER_NAME) $(INSTALL_BIN)/$(ENGINE_CHECK_AOF_NAME)
@ln -sf $(SERVER_NAME) $(INSTALL_BIN)/$(ENGINE_SENTINEL_NAME)

# Create some symlinks like `redis-server` link to `valkey-server` for compatibility
ifeq ($(ENABLE_REDIS_SYMBLINK), true)
$(call CREATE_SYMLINK,$(SERVER_NAME),$(INSTALL_BIN),$(subst $(ENGINE_NAME),redis,$(SERVER_NAME)))
$(call CREATE_SYMLINK,$(ENGINE_CLI_NAME),$(INSTALL_BIN),$(subst $(ENGINE_NAME),redis,$(ENGINE_CLI_NAME)))
$(call CREATE_SYMLINK,$(ENGINE_BENCHMARK_NAME),$(INSTALL_BIN),$(subst $(ENGINE_NAME),redis,$(ENGINE_BENCHMARK_NAME)))
$(call CREATE_SYMLINK,$(ENGINE_CHECK_RDB_NAME),$(INSTALL_BIN),$(subst $(ENGINE_NAME),redis,$(ENGINE_CHECK_RDB_NAME)))
$(call CREATE_SYMLINK,$(ENGINE_CHECK_AOF_NAME),$(INSTALL_BIN),$(subst $(ENGINE_NAME),redis,$(ENGINE_CHECK_AOF_NAME)))
$(call CREATE_SYMLINK,$(ENGINE_SENTINEL_NAME),$(INSTALL_BIN),$(subst $(ENGINE_NAME),redis,$(ENGINE_SENTINEL_NAME)))
endif
# Create some symlinks like `redis-server` link to `valkey-server` for compatibility
ifeq ($(CONFIGURE_REDIS_SYMLINKS), true)
$(call CREATE_SYMLINK,$(SERVER_NAME),$(INSTALL_BIN),$(subst $(ENGINE_NAME),redis,$(SERVER_NAME)))
$(call CREATE_SYMLINK,$(ENGINE_CLI_NAME),$(INSTALL_BIN),$(subst $(ENGINE_NAME),redis,$(ENGINE_CLI_NAME)))
$(call CREATE_SYMLINK,$(ENGINE_BENCHMARK_NAME),$(INSTALL_BIN),$(subst $(ENGINE_NAME),redis,$(ENGINE_BENCHMARK_NAME)))
$(call CREATE_SYMLINK,$(ENGINE_CHECK_RDB_NAME),$(INSTALL_BIN),$(subst $(ENGINE_NAME),redis,$(ENGINE_CHECK_RDB_NAME)))
$(call CREATE_SYMLINK,$(ENGINE_CHECK_AOF_NAME),$(INSTALL_BIN),$(subst $(ENGINE_NAME),redis,$(ENGINE_CHECK_AOF_NAME)))
$(call CREATE_SYMLINK,$(ENGINE_SENTINEL_NAME),$(INSTALL_BIN),$(subst $(ENGINE_NAME),redis,$(ENGINE_SENTINEL_NAME)))
endif

uninstall:
@rm -f $(INSTALL_BIN)/{$(SERVER_NAME),$(ENGINE_BENCHMARK_NAME),$(ENGINE_CLI_NAME),$(ENGINE_CHECK_RDB_NAME),$(ENGINE_CHECK_AOF_NAME),$(ENGINE_SENTINEL_NAME)}

ifeq ($(ENABLE_REDIS_SYMBLINK), true)
ifeq ($(CONFIGURE_REDIS_SYMLINKS), true)
@rm -f $(INSTALL_BIN)/{$(subst $(ENGINE_NAME),redis,$(SERVER_NAME)),\
$(subst $(ENGINE_NAME),redis,$(ENGINE_CLI_NAME)),\
$(subst $(ENGINE_NAME),redis,$(ENGINE_BENCHMARK_NAME)),\
Expand Down

0 comments on commit ba81d4d

Please sign in to comment.