> On Sun, Feb 05, 2006 at 08:39:44AM -0500, Bob Rossi wrote: > > dist_man_MANS = cgdb.1 > > # Autogenerate the man page using help2man. This happens whenever the > > # user modifies either configure.in or usage.c, which contains CGDB's > > usage. > > cgdb.1: $(top_srcdir)/cgdb/src/usage.c $(top_srcdir)/configure.in > > help2man --output=$(top_srcdir)/doc/cgdb.1 > > $(top_builddir)/cgdb/src/cgdb$(EXEEXT) > > you should make sure that the executable is up-to date; do something like: > > cgdb.1: $(top_srcdir)/cgdb/src/usage.c $(top_srcdir)/configure.in > $(MAKE) $(AM_MAKEFLAGS) -C $(top_builddir)/cgdb/src cgdb$(EXEEXT) > help2man --output=$(top_srcdir)/doc/cgdb.1 > $(top_builddir)/cgdb/src/cgdb$(EXEEXT)
O, I see. I actually build the doc/ directory after the cgdb/ directory, however, if you cd into it, that won't be the case. Thanks. > > AM_INIT_AUTOMAKE(cgdb, 0.6.0) macro > > Please note that this for is obsolete. To get the best results from > current automake & autoconf, give the version number to AC_INIT and > call AM_INIT_AUTOMAKE without parameters (or with an option list only). > See the fine manuals. Wow, thanks. Either I'm getting old fast, or I did this wrong in the first place. Thanks for the advice. Bob Rossi
