I'm using make
command to build my C files in Linux. I can build it without errors form another directory using -C DIRECTORY
option. I can build it in it's directory allowing multiple jobs using -j [N]
option. But when I try to build if form another directory with multiple jobs make -C DIRECTORY -j [N]
it fails with: gcc: error: some_file: No such file or directory
How can I enforce make
to change directory and build with multiple jobs together?