[script] avoid build crush due to chdir in Ubuntu 22.04
This commit is contained in:
parent
1fea2394d8
commit
c244dca616
4
Makefile
4
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
|
||||
|
|
Loading…
Reference in New Issue