* Bob Rossi wrote on Mon, Feb 06, 2006 at 12:54:09PM CET:
>
> > cgdb.1: $(top_srcdir)/cgdb/src/usage.c $(top_srcdir)/configure.in
> > $(MAKE) $(AM_MAKEFLAGS) -C $(top_builddir)/cgdb/src cgdb$(EXEEXT)
`make -C' is not totally portable; I'd write
cd ../cgdb/src && $(MAKE) $(AM_MAKEFLAGS) $(top_builddir)/cgdb/src
cgdb$(EXEEXT)
but then again if the package has SUBDIRs in the order that a toplevel
`make' would ensure correct order, I would not issue such a rule at all.
If you instead ever go to use a nonrecursive Makefile structure, you
could just add `../cgdb/src/cgdb$(EXEEXT)' to the prerequisites of this
rule. Much nicer. ;-)
And yes, nonrecursive Makefiles are very much possible and work well
with recent Automake versions.
Cheers,
Ralf