|
From: | Frederico Faria |
Subject: | Re: Automake with Subdirs |
Date: | Wed, 05 Jun 2002 11:20:18 -0700 |
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 serversrc/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
[Prev in Thread] | Current Thread | [Next in Thread] |