summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authordrenfong.wang <drenfong.wang@intel.com>2019-02-12 04:21:58 +0000
committerdrenfong.wang <drenfong.wang@intel.com>2019-02-12 04:21:58 +0000
commitf3e9a1884abc48c583788148b5880813e971563e (patch)
treee346912aa190a232ab03d53425b959b62dfd813d /Makefile
parent5106095af7a9347174cc0110364e8173f6e27fba (diff)
add build-package for sweetcomb
Change-Id: I4e2bc4e667e32804c5fc18879e6520e463b86362 Signed-off-by: drenfong.wang <drenfong.wang@intel.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 10 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index a325c11..b4f9343 100644
--- a/Makefile
+++ b/Makefile
@@ -50,7 +50,7 @@ endif
TARGETS = sweetcomb
-.PHONY: help install-dep install-dep-extra install-vpp checkstyle fixstyle build build-scvpp
+.PHONY: help install-dep install-dep-extra install-vpp checkstyle fixstyle build-plugins build-scvpp build-package
define banner
@echo "========================================================================"
@@ -67,9 +67,10 @@ help:
@echo " checkstyle - check coding style"
@echo " fixstyle - fix coding style"
@echo " build-scvpp - build scvpp"
- @echo " build - build plugin"
- @echo " clean - clean all build"
- @echo " distclean - remove all build directory"
+ @echo " build-plugins - build plugins"
+ @echo " build-package - build rpm or deb package"
+ @echo " clean - clean all build"
+ @echo " distclean - remove all build directory"
$(BR)/.deps.ok:
ifeq ($(findstring y,$(UNATTENDED)),y)
make install-dep
@@ -190,9 +191,12 @@ fixstyle:
build-scvpp:
@mkdir -p $(BR)/build-scvpp/;cd $(BR)/build-scvpp;cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr $(WS_ROOT)/src/scvpp/;make install;
-build:
+
+build-plugins:
@mkdir -p $(BR)/build-plugins/;cd $(BR)/build-plugins/;cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr $(WS_ROOT)/src/plugins/;make install;
+build-package:
+ @mkdir -p $(BR)/build-package/;cd $(BR)/build-package/;cmake $(WS_ROOT)/src/;make package;
clean:
@cd $(BR)/build-scvpp && make clean;
@cd $(BR)/build-plugins && make clean;
@@ -200,3 +204,4 @@ clean:
distclean:
@rm -rf $(BR)/build-scvpp
@rm -rf $(BR)/build-plugins
+ @rm -rf $(BR)/build-package