LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 11-18-2006, 12:08 PM   #1
jaristr
Member
 
Registered: Aug 2005
Distribution: Debian and slackware based
Posts: 119

Rep: Reputation: 15
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?

Last edited by jaristr; 11-18-2006 at 12:49 PM.
 
Old 11-18-2006, 12:42 PM   #2
jaristr
Member
 
Registered: Aug 2005
Distribution: Debian and slackware based
Posts: 119

Original Poster
Rep: Reputation: 15
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

Last edited by jaristr; 11-18-2006 at 12:46 PM.
 
Old 11-20-2006, 03:24 AM   #3
jaristr
Member
 
Registered: Aug 2005
Distribution: Debian and slackware based
Posts: 119

Original Poster
Rep: Reputation: 15
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
automake error: no rule to make target all jwstric2 Programming 2 10-18-2011 02:48 PM
Scribus installation problem, sez I need automake 1.6 when automake 1.9 is istalled Rockgod2099 Linux - Software 13 11-14-2004 06:37 PM
lopster v1.2.2 make error: No rule to make target `m4/glibc21.m4' Kropotkin Fedora 0 10-31-2004 11:19 AM
make: *** No rule to make target 'gconfig'. Stop. cswake Slackware 4 10-10-2004 12:13 PM
automake problem / make doesn't work anymore deadlove75 Mandriva 0 06-23-2004 05:53 PM


All times are GMT -5. The time now is 03:12 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration