From ee2af25d7ad79452de64303fc945a618b5ea06c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=98=A4=ED=98=95=EC=84=9D/=EB=8F=99=EC=9E=91=EC=A0=9C?= =?UTF-8?q?=EC=96=B4Lab=28SR=29/Senior=20Engineer/=EC=82=BC=EC=84=B1?= =?UTF-8?q?=EC=A0=84=EC=9E=90?= Date: Wed, 2 May 2018 19:06:35 +0900 Subject: 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 --- Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'Makefile') 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 ### -- cgit v1.2.3