* Nicolas Haller wrote on Tue, Apr 26, 2005 at 12:20:49AM CEST: > On Mon, Apr 25, 2005 at 10:45:56PM +0200, Ralf Wildenhues wrote: > > * Nicolas Haller wrote on Mon, Apr 25, 2005 at 08:43:40PM CEST: > > > > > > I am writing a program in C++ and I want to use autotools to help me > > > to build my program. > > > > I have organized my "working directory" in some subdirectory. It's look > > > like this: > > > Don't do it like this. Don't have a build directory (yet). > > Put Makefile.am under your source tree, either only one, or one per > > directory, like this: > > It's an another problem, when you say "or one per directory"? How can I > do that? One per directory in the source tree is pretty common. > I have a top Makefile with my single and simple line SUBDIRS=src test > lib doc and in src/ the Makefile.am which was in build/ before, but in > subdirectories of src/ ? Well, put SUBDIRS = whatever_dirs_live_under_src into src/Makefile.am. Don't forget to mention all to-be-generated Makefiles in the AC_CONFIG_FILES macro in configure.ac. > I had only .cc and .hh files, and no program or > librairies to make, so I don't know what to write into Makefile.am. So > what can I do if I want to have makefile in all subdirectories? Above should make it all clear. Otherwise, please be more specific. Regards, Ralf BTW, sorry Stefan, I had not seen your post before I sent mine. :) _______________________________________________ Autoconf mailing list Autoconf@xxxxxxx http://lists.gnu.org/mailman/listinfo/autoconf