Writing an LLVM Pass - failing.
===

I'm working though [http://llvm.org/docs/WritingAnLLVMPass.html][1], trying to write a very simple pass. (Assume I'm using 'Joe' rather than 'hello', because there is already a 'hello' in the relevant directory)

I create the directory 'joe' where I should , I create the suggested cpp file in 'joe'  (although I note that none of the nearby directory's have any cpp files in them)  and I name it 'joe.cpp' because I don't believe I've been told differently... 

I reach the part of the documentation where it says 'compile the file with a simple "gmake" command in the local directory' but I get the error 

   

    

>  make: *** No rule to make target
> `/Users/josephreddington/llvm/llvm/lib/Transforms/joe/Makefile',
> needed by `Makefile'.  Stop.

which is utterly confusing.  I note the similarity to [this case][2], but in that case running ../config and then a make in the root directory solved in the problem. In my task this takes 20 minutes and then nothing has changed... could anyone tell me what is meant to have happened or give me a trace of what success looks like? 


  [1]: http://llvm.org/docs/WritingAnLLVMPass.html
  [2]: http://stackoverflow.com/questions/4763381/no-rule-to-make-target-makefile-needed-by-makefile