Hello Bill, Thanks, that's clear.
So, If I write in makefile build_release: $(RELEASE_DIR) @cd $(RELEASE_DIR); $(MAKE) release I got an error Also if I write build_release: $(RELEASE_DIR) $(MAKE) release -C $(RELEASE_DIR) I got an error too But this is successfull command: # cd $ RELEASE_DIR; make release -j10 Why make doesn't support jobs for subdirs? >Пятница, 11 декабря 2015, 14:14 -05:00 от Bill Hoffman ><bill.hoff...@kitware.com>: > >On 12/11/2015 7:24 AM, Igor Sobinov wrote: >> Hello Bill, >> >> yes, make release is a custom command but that's not important. >> I do the following: >> # cd /home/igor/build_root/release_target >> # make release -j5 >Yes, it is important, it is the reason it is not working. The custom >command needs to use $(MAKE) and not make to call make or you will get >this error. Child make calls need environment variables to get parallel >builds to work. The MAKE env var is used to pass them around. > >-Bill > Bye, Igor
-- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake