LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   automake make target problem (https://www.linuxquestions.org/questions/programming-9/automake-make-target-problem-502803/)

jaristr 11-18-2006 12:08 PM

automake make target problem
 
Hi, I'm trying to use automake tools to setup build tools for my project and while I was able to make few simple test projects and build them I'm having problems with this project that has different file structure.

After the make call the console says:
"no rule to make target '../../configure.in', needed by 'makefle.in'

EDIT: please see the second post for details

Now I don't understand why it cant find the configure. Here is how I have setup the make and configure files:


project dir
automake
Automake.am
configure.in
engine

subdir1
subdir2
Automake.am

The first automake.am has:
SUBDIRS = ../engine
So it should find the other Automake.am right? (that automake has the _SOURCES = ...) And I think it does but after that it looks for the configure.in, again?


I know this isn't much information I have given to you but I think it helps a lot if you can tell should the automake tools work like this even I have setup such an unordinary file structure?

jaristr 11-18-2006 12:42 PM

Here's the contents of the important files (automakes are simple as you can see):

The configure file in project/automake/configure.in:

Code:


AC_INIT([editorD], [0.1], [bugs@.box.com])

AC_CONFIG_SRCDIR([../engine/game/main.cc])


AM_INIT_AUTOMAKE([-Wall -Werror foreign])


AC_CONFIG_HEADERS([config.h])


AC_LANG_CPLUSPLUS

AC_PROG_CXX

AM_PROG_LIBTOOL

AM_PROG_LEX

AC_PROG_YACC



AC_CONFIG_FILES([Makefile])

AC_OUTPUT

First automake file in project/automake/Automake.am:

Code:

SUBDIRS = ../engine
Second Automake file in project/engine/Automake.am:

Code:

bin_PROGRAMS = editorD

editorD_SOURCES = file1.cc subDir1/someFile.cc game/main.cc


Also here is the full error report:
Code:

make  all-recursive
make[1]: Entering directory `/<path removed>/automake'
Making all in ../engine
make[2]: Entering directory `/<path removed>/engine'
make[2]: *** No rule to make target `../../configure.in', needed by `Makefile.in'.  Stop.
make[2]: Leaving directory `/<path removed>/engine'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/<path removed>/automake'
make: *** [all] Error 2


jaristr 11-20-2006 03:24 AM

I think the problem is that make cannot recurse down and then up again because it looses the location of the config.h. Does any one know if you can set additional search paths for the config.h or something?


All times are GMT -5. The time now is 02:09 AM.