automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: help2man


From: Ralf Wildenhues
Subject: Re: help2man
Date: Mon, 6 Feb 2006 13:35:24 +0100
User-agent: Mutt/1.5.11

* 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]