From 83c49ba7cf95764ba8a424b19c483b6a31e23454 Mon Sep 17 00:00:00 2001 From: miheer vaidya Date: Mon, 18 Nov 2019 12:47:14 -0700 Subject: [PATCH 1/2] add rule for clean --- apps/howto_deploy/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/howto_deploy/Makefile b/apps/howto_deploy/Makefile index 12c9d179351a..a17dc3e2f997 100644 --- a/apps/howto_deploy/Makefile +++ b/apps/howto_deploy/Makefile @@ -49,3 +49,5 @@ lib/cpp_deploy_pack: cpp_deploy.cc lib/test_addone_sys.o lib/libtvm_runtime_pack lib/cpp_deploy_normal: cpp_deploy.cc lib/test_addone_sys.o @mkdir -p $(@D) $(CXX) $(PKG_CFLAGS) -o $@ $^ -ltvm_runtime $(PKG_LDFLAGS) +clean: + rm -rf lib/ From 972de2f5d73872dfb1486f24c2361d8f28b4ffc3 Mon Sep 17 00:00:00 2001 From: miheer vaidya Date: Mon, 18 Nov 2019 13:16:55 -0700 Subject: [PATCH 2/2] Update clean rule Seems like lib/ directory is not made by the makefile So don't delete directory, just the contents of it. --- apps/howto_deploy/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/howto_deploy/Makefile b/apps/howto_deploy/Makefile index a17dc3e2f997..3ab4fb2b45e6 100644 --- a/apps/howto_deploy/Makefile +++ b/apps/howto_deploy/Makefile @@ -50,4 +50,4 @@ lib/cpp_deploy_normal: cpp_deploy.cc lib/test_addone_sys.o @mkdir -p $(@D) $(CXX) $(PKG_CFLAGS) -o $@ $^ -ltvm_runtime $(PKG_LDFLAGS) clean: - rm -rf lib/ + rm lib/libtvm_runtime_pack.o lib/test_addone_sys.o lib/cpp_deploy_pack lib/cpp_deploy_normal