From 6b83a0fd04e2603f4a3f0388980f88c80a554b2a Mon Sep 17 00:00:00 2001 From: du Date: Thu, 7 Sep 2017 18:37:10 +0800 Subject: [PATCH] [nginx/Makefile] use conditional directive for TEMP_DIR --- controllers/nginx/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/controllers/nginx/Makefile b/controllers/nginx/Makefile index 4aebd4ac2..8fca2bc1b 100644 --- a/controllers/nginx/Makefile +++ b/controllers/nginx/Makefile @@ -54,7 +54,9 @@ endif # QEMUARCH=s390x #endif -TEMP_DIR := $(shell mktemp -d) +ifndef TEMP_DIR + TEMP_DIR := $(shell mktemp -d) +endif DOCKERFILE := $(TEMP_DIR)/rootfs/Dockerfile