magit/magit — pull request #418 by edavis (2012-05-28 16:41:34+00:00)
Title: magit fails to build on Homebrew

When installing magit HEAD via [Homebrew](http://github.com/mxcl/homebrew), the build fails when trying to install the 50magit.el file.

The problem is 50magit.el is built in $(PWD)/50magit.el where $(PWD) -- when building via Homebrew -- refers to the directory where the brew command was issued rather than the build directory. Building the file in $(CURDIR) fixes the issue.

Building manually (e.g., `cd magit; make`) works fine because $(PWD) refers to the build directory as expected.

I initially reported this to the Homebrew devs (mxcl/homebrew#12453) but they feel it's an upstream issue.

Thanks.