From c244dca6162b5fb49725f16957f695df50dcea2a Mon Sep 17 00:00:00 2001 From: tangxifan Date: Tue, 31 Jan 2023 11:59:01 -0800 Subject: [PATCH] [script] avoid build crush due to chdir in Ubuntu 22.04 --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index e9dcb26e9..9774e7863 100644 --- a/Makefile +++ b/Makefile @@ -62,8 +62,8 @@ checkout: prebuild: # Run cmake to generate Makefile under the build directory, before compilation - @mkdir -p ${BUILD_DIR} - echo "cd ${BUILD_DIR} && ${CMAKE_COMMAND} ${CMAKE_FLAGS} ${SOURCE_DIR}" + @mkdir -p ${BUILD_DIR} && \ + echo "cd ${BUILD_DIR} && ${CMAKE_COMMAND} ${CMAKE_FLAGS} ${SOURCE_DIR}" && \ cd ${BUILD_DIR} && ${CMAKE_COMMAND} ${CMAKE_FLAGS} ${SOURCE_DIR} compile: prebuild