summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorgy95 <guoyao17@huawei.com>2022-04-06 11:30:52 +0800
committergy95 <guoyao17@huawei.com>2022-04-07 17:06:00 +0800
commitc5efcb53df9b63fefe1c8abf4456ef7c98a81d4f (patch)
tree1ac706e7d087191c60524c3b34c735a5708a8610 /Makefile
parentMerge pull request #3756 from gy95/binary (diff)
downloadkubeedge-c5efcb53df9b63fefe1c8abf4456ef7c98a81d4f.tar.gz
compile inside container by default
Signed-off-by: gy95 <guoyao17@huawei.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 784cd140e..9f968e332 100644
--- a/Makefile
+++ b/Makefile
@@ -22,6 +22,7 @@ COMPONENTS=cloud \
.EXPORT_ALL_VARIABLES:
OUT_DIR ?= _output/local
+BUILD_WITH_CONTAINER?=true
RUN = hack/make-rules/build_with_container.sh
define ALL_HELP_INFO
@@ -43,10 +44,10 @@ define ALL_HELP_INFO
# use the debugging tools like delve. When GOLDFLAGS is unspecified, it defaults to "-s -w" which strips
# debug information, see https://golang.org/cmd/link for other flags.
#
-# Set the environment variable or arg BUILD_WITH_CONTAINER to build inside container,
-# only docker and make are required in this mode.
-# 1) make all WHAT=cloudcore BUILD_WITH_CONTAINER=true
-# 2) export BUILD_WITH_CONTAINER=true && make all WHAT=cloudcore
+# By default we build inside container, only docker and make are required in this mode.
+# Set the environment variable or arg BUILD_WITH_CONTAINER to false to build with local environment. You need to install all dependencies to make building work.
+# 1) make all WHAT=cloudcore BUILD_WITH_CONTAINER=false
+# 2) export BUILD_WITH_CONTAINER=false && make all WHAT=cloudcore
endef
.PHONY: all