title: How to run Makefile script from bash script
body: <p>I want to run an SH file in terminal to run C program with Makefile. SH file contents:</p>
  <pre><code>#!/bin/bash
  make
  ./myapp
  </code></pre>
  <p>and I get an сompilation error:</p>
  <pre><code>/usr/bin/ld: cannot find -lblas
  /usr/bin/ld: cannot find -llapack
  /usr/bin/ld: skipping incompatible /usr/lib/libgcc_s.so.1 when searching for libgcc_s.so.1
  </code></pre>
  <p>But when I write <code>$ make</code> in terminal it compiles successfully and I can run <code>./myapp</code> in SH file. And it works.</p>
  <p>Is there any way to compile and run a program with Makefile in SH file?
  I run the .sh file with slurm command:
  <code>sbatch run.sh</code></p>