title: How do I move the location of an xcodeproj file without breaking external build target?
body: <p>I have an Xcode project with a directory structure like this:</p>
  
  <blockquote>
    <p>MasterProjectDir/projectname.xcodeproj<br>
    MasterProjectDir/ProjectSubDir/whatever.c<br>
    MasterProjectDir/ProjectSubDir/etc.c<br>
    MasterProjectDir/ProjectSubDir/Makefile</p>
  </blockquote>
  
  <p>My xcodeproj uses an external build target to point to the Makefile using these settings:</p>
  
  <blockquote>
    <p>Build Tool: /usr/bin/make<br>
    Arguments: $(ACTION)<br>
    Directory: ./ProjectSubDir<br></p>
  </blockquote>
  
  <p>For various reasons, I need to change the project directory structure to look like this:</p>
  
  <blockquote>
    <p>MasterProjectDir/projectname.xcodeproj<br>
    MasterProjectDir/whatever.c<br>
    MasterProjectDir/etc.c<br>
    MasterProjectDir/Makefile<br></p>
  </blockquote>
  
  <p>I copied the .xcodeproj file into the ProjectSubDir and the project somehow still knows where to look for the files (?!?! - this is odd because their location is set as "relative to group" and I've just moved the xcodeproj file). It won't build. I get the following error:</p>
  
  <blockquote>
    <p>make: <em>*</em> No targets specified and no makefile found.  Stop.<br>
    Command /usr/bin/make failed with exit code 2</p>
  </blockquote>
  
  <p>I could use a little help on this. There must be a setting I need to change somewhere.</p>