title: Adding additional make/test targets to an autotools project
body: <p>We have an autotools project that has a mixture of unit and integration tests, all of which run via 'make check'.  This isn't ideal, as some of the integration tests take a while, and have all sorts of dependencies (database, etc.)</p>
  
  <p>I'd like to separate the integration tests and assign them their own make target.  That way, unit tests can still be run often (via make check), and the integration tests can be run as needed in a similar fashion.</p>
  
  <p>Is there a straightforward (or otherwise) way to add an additional make target?</p>
  
  <p>NOTE: I should probably also add that this is a large project, so editing/maintaining every makefile by hand is not desirable.  I'd like to do it the 'autotools way' if possible.</p>
  
  <p>-- UPDATE 1 --</p>
  
  <p>I've attempted <a href="https://stackoverflow.com/users/168672/jon">Jon</a>'s solution, and it's a step closer, but not quite there.  I still have a couple of issues:</p>
  
  <p>1) Recursion - I'm OK with modifying the makefile.am in the root of the build tree, as well as any directory that contains the tests, but it seems like there should be a way to do this where I don't have to change every Makefile.am in the hierarchy. (the check target works this way, after all)</p>
  
  <p>2) .PHONY - I keep getting messages about .PHONY being redefined.  Which is understandable, because it's being set by another package (specifically, doxygen).  How do I make the two play nice together?</p>