automake
[Top][All Lists]
Advanced

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

Re: Automake with Subdirs ( Help Please )


From: Frederico Faria
Subject: Re: Automake with Subdirs ( Help Please )
Date: Wed, 05 Jun 2002 17:07:14 -0700

 
 Hi,

   It seems that when I run the  ./configure  , it seeks the Makefile.in in   ".. /src/Makefile.in".     But It shoud seek the Makefile.in

in  "server/src/Makefile.in" !

 Then  I created a new  dir to verify this. Now I have the three dirs :
                                            
                ./server
                 ./src                ( new dir, only to tests purpose )
                ./server/src

    I moved the  server/src/Makefile.in generated in   ./server/src  to  ./src  and all works fine !!!!!

     I wait for any help.

Thank you ,

Faria
 
 
 
 
 
 
 

Frederico Faria wrote:

  Hi Panagiotis,

  I  had had added the line   SUBDIRS = src  in server/Makefile.am already !    I have had the  same message error!

1 ** ) My  server/Makefile.am   contents are:

          EXTRA_DIST =  ChangeLog INSTALL README TODO
         SUBDIRS = src
         AUTOMAKE_OPTIONS = foreign
 
 

 2**)  My server/configure.in contents are:

        AC_INIT(server, 0.1, address@hidden)
       AM_INIT_AUTOMAKE(server, 1.0)
       AM_CONFIG_HEADER(config.h)
       AC_LANG_CPLUSPLUS

       AC_PROG_CXX
      AC_ENABLE_SHARED(yes)
      AC_ENABLE_STATIC(yes)

      AC_OUTPUT( Makefile   src/Makefile )

 3**) My server/src/Makefile.am contents are

                 bin_PROGRAMS = main
                 main_SOURCES  = server.cpp  DBManager.cpp
 

   I run the sequence of scripts:
                    % aclocal
                    % autoconf
                    % autoheader
                   % automake -a
                  % ./configure

// *******************************

  Any   suggestion ?

Thank you ,

Faria
 
 
 

Panagiotis Vossos wrote:

Frederico Faria <address@hidden> writes:

> I try to use the configure script and automake on my project. I have a
> source directory:
>
>     server
>     server/src
>
> I'd like to generate the Makefiles in server and server/src.
>
> But i've got a problem; configure creates an empty server/src/Makefile.
> Below is the stdout of configure command.
> See the message "sed: can't read ../src/Makefile.in: No such file or
> directory"

server/src/Makefile.in is generated by automake from
server/src/Makefile.am.  You must add the line:

SUBDIRS = src

to your top-level Makefile.am (I assume server/Makefile.am).

panagiotis

-- 
Frederico Charles S. Faria
Coordenação de Desenvolvimento de Software
ATI / ATITEL  Ltda
www.ati.com.br
 
-- 
Frederico Charles S. Faria
Coordenação de Desenvolvimento de Software
ATI / ATITEL  Ltda
www.ati.com.br
 
reply via email to

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