redis/Makefile
YaacovHazan ec84bd6143
Prevent building with modules on 32-bit systems (#14618)
Redis modules do not support 32-bit architectures. The build now fails
early when modules are enabled on such systems.
2025-12-11 11:04:30 +02:00

19 lines
426 B
Makefile

# Top level makefile, the real stuff is at ./src/Makefile and in ./modules/Makefile
SUBDIRS = src
ifeq ($(BUILD_WITH_MODULES), yes)
ifeq ($(MAKECMDGOALS),32bit)
$(error BUILD_WITH_MODULES=yes is not supported on 32 bit systems)
endif
SUBDIRS += modules
endif
default: all
.DEFAULT:
for dir in $(SUBDIRS); do $(MAKE) -C $$dir $@; done
install:
for dir in $(SUBDIRS); do $(MAKE) -C $$dir $@; done
.PHONY: install