Add conditional compilation for nginx and redis

master
Jiajie Chen 6 years ago
parent 7bf5f7cf64
commit 586e682f06

@ -71,19 +71,23 @@ endif
busybox: $(busybox)
nginx:
ifneq ($(arch), riscv32)
ifneq ($(shell uname), Darwin)
mkdir -p $(out_dir)
@cd nginx && make arch=$(arch) all
@cp nginx/build/$(arch)/nginx $(out_dir)/nginx
endif
endif
redis:
ifneq ($(arch), riscv64)
ifneq ($(shell uname), Darwin)
mkdir -p $(out_dir)
@cd redis && make arch=$(arch) all
@cp redis/build/$(arch)/redis-server $(out_dir)/redis-server
@cp redis/build/$(arch)/redis-cli $(out_dir)/redis-cli
endif
endif
build: rust ucore biscuit $(busybox) nginx redis

Loading…
Cancel
Save