summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
author오형석/동작제어Lab(SR)/Senior Engineer/삼성전자 <hseok82.oh@samsung.com>2018-05-02 19:06:35 +0900
committer이성재/동작제어Lab(SR)/Principal Engineer/삼성전자 <sj925.lee@samsung.com>2018-05-02 19:06:35 +0900
commitee2af25d7ad79452de64303fc945a618b5ea06c3 (patch)
tree67286aa5171d6957661c2cd35c6408bc9a1fee74 /Makefile
parent5ca551574bb73871a5f5878f977cf604bac0f5f6 (diff)
downloadnnfw-ee2af25d7ad79452de64303fc945a618b5ea06c3.tar.gz
nnfw-ee2af25d7ad79452de64303fc945a618b5ea06c3.tar.bz2
nnfw-ee2af25d7ad79452de64303fc945a618b5ea06c3.zip
Build test only (#997)
Modify Makefile on root directory to build test only by "make testbuild" Can build tensoflow lite only using "make tflite" Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 2bde6fc21..21f2b31c7 100644
--- a/Makefile
+++ b/Makefile
@@ -114,6 +114,10 @@ check: check_internal
runtime: runtime_build_internal
+testbuild: test_build_internal
+
+tflite: tflite_build_internal
+
###
### Command (internal)
###
@@ -195,6 +199,22 @@ runtime_build_internal: $(BUILD_ROOT)
ln -s $(BUILD_FOLDER) $(BUILD_ALIAS)
touch $(TIMESTAMP_BUILD)
+test_build_internal: $(BUILD_ROOT)
+ # Build test
+ cd $(BUILD_ROOT) && make -j $(NPROCS) nnapi_test
+ # Build unittest
+ cd $(BUILD_ROOT) && make -j $(NPROCS) kernelacl_test runtime_run_android_nn_test
+ rm -rf $(BUILD_ALIAS)
+ ln -s $(BUILD_FOLDER) $(BUILD_ALIAS)
+ touch $(TIMESTAMP_BUILD)
+
+tflite_build_internal: $(BUILD_ROOT)
+ # Build test
+ cd $(BUILD_ROOT) && make -j $(NPROCS) tensorflow-lite
+ rm -rf $(BUILD_ALIAS)
+ ln -s $(BUILD_FOLDER) $(BUILD_ALIAS)
+ touch $(TIMESTAMP_BUILD)
+
###
### Timestamps
###