Call makefile from shell script

I'm writing a VERY simple shell script. I need to call a makefile in a subdirectory. What's the command I need to use?

./dir/make and ./dir/makefile doesn't work.

Thanks in advance

make isn't and never was in those directories. make just checks inside the current directory for a file named makefile or Makefile.

You can make it check a different directory with -C

make -C /path/to/dirwithmakefileinit/

1 Like