title: Makefile is giving me an error - No such file or directory
body: <p>I have a <em>very</em> simple makefile. All I want to do in this makefile is compile my files and create an executable for my test. I have the following files:</p>
  
  <ul>
  <li>Test.cpp - main function</li>
  <li>BaseClass.cpp</li>
  <li>BaseClass.h - header file for the Base class</li>
  <li>DerivedClass.cpp - Inherits the base class</li>
  <li>DerivedClass.h - header file for the derived class</li>
  </ul>
  
  <p>Here is the makefile I have:</p>
  
  <pre><code>all: Test
  
  Test: BaseClass.o DerivedClass.o Test.o
      g++ -o BaseClass.o DerivedClass.o Test.o Test
  
  Test.o: Test.cpp BaseClass.h DerivedClass.h
      g++ -c Test.cpp
  
  Package.o: BaseClass.cpp BaseClass.h
      g++ -c BaseClass.cpp
  
  DerivedClass.o: DerivedClass.cpp DerivedClass.h
      g++ -c DerivedClass.cpp
  
  clean:
      rm -rf *.o
  </code></pre>
  
  <p>I've never created a makefile for 5 files before. I can create one with 3 pretty easily, but I don't know what's wrong. The error I'm getting is:</p>
  
  <p><em>Test: No fuch file or directory</em></p>
  
  <p>EDIT: Thanks, Joe! That was it. Pretty silly oversight of mine.</p>