Run Makefile from Finder
You could use a function like this:

fmake() {
  cd "$(osascript -e 'tell application "Finder"
      POSIX path of (target of Finder window 1 as alias)
  end tell' 2&gt; /dev/null)"
  make &amp;&amp; make install
}


Or save a function just for the cd command and use history-search-backward to run something like cdf &amp;&amp; make &amp;&amp; make install.

Or open Automator, choose the Service template, set the input type to no input, and add a Run AppleScript action like this:

try
    tell application "Finder"
        POSIX path of (target of Finder window 1 as alias)
    end tell
    tell application "Terminal"
        do script "cd " &amp; quoted form of result &amp; " &amp;&amp; make &amp;&amp; make install"
        activate
    end tell
end


Without the try block Automator would show an error dialog if the script exits with an error.