diff -NrC 5 ../orig/Source/cmAddMakefileDepends.cxx Source/cmAddMakefileDepends.cxx
*** ../orig/Source/cmAddMakefileDepends.cxx	1969-12-31 17:00:00.000000000 -0700
--- Source/cmAddMakefileDepends.cxx	2007-10-12 01:07:07.000000000 -0600
***************
*** 0 ****
--- 1,20 ----
+ #include "cmAddMakefileDepends.h"
+ 
+ bool cmAddMakefileDepends::InitialPass(std::vector<std::string> const& args)
+ {
+ 	if (args.size() < 1)
+ 	{
+ 		this->SetError("ADD_MAKEFILE_DEPENDS called with incorrect "
+ 		               "number of arguments");
+ 		return false;
+     } 
+ 
+ 	std::vector<std::string>::const_iterator s;
+ 	for(s = args.begin(); s != args.end(); ++s)
+ 	{
+ 		this->Makefile->AddCMakeDependFile(s->c_str());
+ 	}
+ 
+     return true;
+ }
+ 
diff -NrC 5 ../orig/Source/cmAddMakefileDepends.h Source/cmAddMakefileDepends.h
*** ../orig/Source/cmAddMakefileDepends.h	1969-12-31 17:00:00.000000000 -0700
--- Source/cmAddMakefileDepends.h	2007-10-12 01:07:22.000000000 -0600
***************
*** 0 ****
--- 1,57 ----
+ #ifndef cmAddMakefileDepends_h
+ #define cmAddMakefileDepends_h
+ 
+ #include "cmCommand.h"
+ 
+ /** \class cmAddMakefileDepends
+  *  \brief Adds files to the list of Makefile dependencies.
+  */
+ class cmAddMakefileDepends : public cmCommand
+ {
+ public:
+ 	/**
+ 	 * This is a virtual constructor for the command.
+ 	 */
+ 	virtual cmCommand* Clone() 
+ 	{
+ 		return new cmAddMakefileDepends;
+ 	}
+ 
+ 	/**
+ 	 * This is called when the command is first encountered in
+ 	 * the CMakeLists.txt file.
+ 	 */
+ 	virtual bool InitialPass(std::vector<std::string> const& args);
+ 
+ 	/**
+ 	 * The name of the command as specified in CMakeList.txt.
+ 	 */
+ 	virtual const char* GetName() 
+ 	{ 
+ 		return "ADD_MAKEFILE_DEPENDS";
+ 	}
+ 
+ 	/**
+ 	 * Succinct documentation.
+ 	 */
+ 	virtual const char* GetTerseDocumentation() 
+ 	{
+ 		return "Adds files to the list of Makefile dependencies.";
+ 	}
+ 
+ 	/**
+ 	 * More documentation.
+ 	 */
+ 	virtual const char* GetFullDocumentation()
+ 	{
+ 		return
+ 			"  ADD_MAKEFILE_DEPENDS(dependencies)\n"
+ 			"Adds a list of files that the Makefiles will depend on.  If these files "
+ 			"change, then CMake will be triggered will regenerate the Makefiles on the "
+ 			"next build invocation.";
+ 	}
+ 
+ 	cmTypeMacro(cmAddMakefileDepends, cmCommand);
+ };
+ 
+ #endif // cmAddMakefileDepends_h
diff -NrC 5 ../orig/Source/cmCommands.cxx Source/cmCommands.cxx
*** ../orig/Source/cmCommands.cxx	2007-10-12 00:56:25.000000000 -0600
--- Source/cmCommands.cxx	2007-10-12 01:06:52.000000000 -0600
***************
*** 14,23 ****
--- 14,24 ----
       PURPOSE.  See the above copyright notices for more information.
  
  =========================================================================*/
  #include "cmCommands.h"
  #if defined(CMAKE_BUILD_WITH_CMAKE)
+ #include "cmAddMakefileDepends.cxx"
  #include "cmAddSubDirectoryCommand.cxx"
  #include "cmAuxSourceDirectoryCommand.cxx"
  #include "cmBuildNameCommand.cxx"
  #include "cmCreateTestSourceList.cxx"
  #include "cmElseIfCommand.cxx"
***************
*** 69,78 ****
--- 70,80 ----
    commands
  #endif
    )
  {
  #if defined(CMAKE_BUILD_WITH_CMAKE)
+   commands.push_back(new cmAddMakefileDepends);
    commands.push_back(new cmAddSubDirectoryCommand);
    commands.push_back(new cmAuxSourceDirectoryCommand);
    commands.push_back(new cmBuildNameCommand);
    commands.push_back(new cmCreateTestSourceList);
    commands.push_back(new cmElseIfCommand);
