summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorManju Srivatsav <39593583+srivatsav123@users.noreply.github.com>2019-04-13 08:31:46 +0530
committerJun Du <dujun5@huawei.com>2019-04-13 11:01:46 +0800
commit91ad30835641aeb5c4fab56adc704d5f5f2ce510 (patch)
tree90f1e095d0f274a4cde9cc245301a2b4b9e7745d /Makefile
parentMerge pull request #346 from brant4test/patch-1 (diff)
downloadkubeedge-91ad30835641aeb5c4fab56adc704d5f5f2ce510.tar.gz
Makefile changes to make both cloud and edge_core binaries (#340)
These changes will build both cloud and edge binaries when you do make Fixes #338 Addressed review comments Addressed review comments code changes to support make all WHAT={component} resolved comments
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile25
1 files changed, 18 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 61d6c5443..bc71cd9a6 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,22 @@
-# make edge_core
-.PHONY: edge_core
-edge_core:
+# make all builds both cloud and edge binaries
+.PHONY: all
+ifeq ($(WHAT),)
+all:
+ cd cloud/edgecontroller && $(MAKE)
+ cd edge && $(MAKE)
+else ifeq ($(WHAT),cloud)
+# make all what=cloud, build cloud binary
+all:
+ cd cloud/edgecontroller && $(MAKE)
+else ifeq ($(WHAT),edge)
+all:
+# make all what=edge, build edge binary
cd edge && $(MAKE)
+else
+# invalid entry
+all:
+ @echo $S"invalid option please choose to build either cloud, edge or both"
+endif
# unit tests
.PHONY: edge_test
@@ -25,10 +40,6 @@ edge_cross_build:
edge_small_build:
cd edge && $(MAKE) small_build
-.PHONY: edgecontroller
-edgecontroller:
- cd cloud/edgecontroller && $(MAKE)
-
.PHONY: e2e_test
e2e_test:
bash tests/e2e/scripts/execute.sh