Another approach would be to create another Makefile in the directory from which you want to run make, with the contents something like:
all:
cd ./build; make $(MFLAGS)
"make" .
, cmake Makefile, . , make.
cmake make , CMakeLists.txt: cmakeLists.txt:
configure_file(ProjectRootMakefile.in ${CMAKE_SOURCE_DIR}/Makefile @ONLY)
( "$ {CMAKE_SOURCE_DIR}" , )
ProjectRootMakefile.in :
all:
cd @CMAKE_BINARY_DIR@; make $(MFLAGS)
Makefile . (, "cd" , )
, , .