aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrej Kozemcak <andrej.kozemcak@pantheon.tech>2019-01-18 10:07:28 +0100
committerAndrej Kozemcak <andrej.kozemcak@pantheon.tech>2019-01-22 14:55:54 +0100
commitde249ee7c2f09a3c66f70c186faed4648cc1086c (patch)
tree726271eb948eb23fd880f632a376da7c8a588d40
parent7e1e703e607526260d23c1839ddca4f7fc50eb67 (diff)
Makefile, add clean commnad
Change-Id: I915dc489866c54cd37066727b83c4ecef87377b4 Signed-off-by: Andrej Kozemcak <andrej.kozemcak@pantheon.tech>
-rw-r--r--Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 576c6e6..bce9130 100644
--- a/Makefile
+++ b/Makefile
@@ -67,6 +67,8 @@ help:
@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"
$(BR)/.deps.ok:
ifeq ($(findstring y,$(UNATTENDED)),y)
make install-dep
@@ -191,3 +193,11 @@ build-scvpp:
@mkdir -p $(BR)/build-scvpp/;cd $(BR)/build-scvpp;cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr $(WS_ROOT)/src/scvpp/;make install;
build:
@mkdir -p $(BR)/build-plugins/;cd $(BR)/build-plugins/;cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr $(WS_ROOT)/src/plugins/;make install;
+
+clean:
+ @cd $(BR)/build-scvpp && make clean;
+ @cd $(BR)/build-plugins && make clean;
+
+distclean:
+ @rm -rf $(BR)/build-scvpp
+ @rm -rf $(BR)/build-plugins