Re: About non-recursive automake
Václav Haisman <[email protected]> Sat, 11 Oct 2025 13:10:38 +0200
| Newsgroups | gmane.comp.sysutils.automake.general |
|---|---|
| Message-ID | <[email protected]> |
On 10/10/25 19:34, Eduardo Costa wrote: > Hi, > > I've been using non-recursive (auto)make for a while, and I couldn't > be happier with it. > > Now, I have a sub-project that uses some of the sources of the main > one, and I'd like to build them both at once in a controlled manner, > where the main project calls on this new subproject when time has > come. So I moved the new thing into a subdirectory of the main project > and tried to set it up. > > Both require of command-line options, which is why I need two > `configure.ac's, but I could go by using `AX_SUBDIRS_CONFIGURE' > without much of a hassle. > > I can configure both at once, still build the main project as normal, > but`autoreconf' now complaints about variables such like > `bin_PROGRAMS' being defined twice, and I can't seem to be able to > build this new subproject as a part of the whole build. You just have to use the `+=` operator instead of plain `=` for the variable. Make sure your sub project `Makefile.am` is `include`'d after your main `bin_PROGRAMS` is already assigned. > > I can compile it alone by using the `-C' flag, but including it's > top-level `Makefile.am' doesn't seem to be doing anything. > > So my questions are: during the build as a whole, how can I call into > this new subproject whenever I need to? And is it possible to get rid > of the warnings thrown by `autoreconf' so I'm not offending anybody? > > Thanks, > -- VH