I’d like eclipse to only run make in the directory the current file belongs to, not for the entire project. This becomes more important since the project is very big and make on the top level takes around 20 minutes. most of it is entering-leaving directories and checking if build is needed etc. So I have to manually open the directory in cmd and run make. So I’d like eclipse to do this in its build automatically process. Is that possible?
I’d like eclipse to only run make in the directory the current file belongs
Share
Try to play with Build directory option found in project properties -> C/C++ Build -> Builder Settings tab. The default value there is
${workspace_loc:/your_project}. However Eclipse provides rich set of predefined variables (see under Variables… button). Probably most interesting for you are these ones:build_filesselected_resource_locOther places where you could try to use these variables are Make build target options in Behaviour tab.