Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


Search this Thread
Old 11-18-2006, 01:08 PM   #1
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 '../../', needed by ''

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


The first has:
SUBDIRS = ../engine
So it should find the other right? (that automake has the _SOURCES = ...) And I think it does but after that it looks for the, 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 01:49 PM.
Old 11-18-2006, 01:42 PM   #2
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/

AC_INIT([editorD], [0.1], [])


AM_INIT_AUTOMAKE([-Wall -Werror foreign])








First automake file in project/automake/

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

bin_PROGRAMS = editorD 

editorD_SOURCES = subDir1/ game/

Also here is the full error report:
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 `../../', needed by `'.  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 01:46 PM.
Old 11-20-2006, 04:24 AM   #3
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?


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 03:48 PM
Scribus installation problem, sez I need automake 1.6 when automake 1.9 is istalled Rockgod2099 Linux - Software 13 11-14-2004 07:37 PM
lopster v1.2.2 make error: No rule to make target `m4/glibc21.m4' Kropotkin Fedora 0 10-31-2004 12:19 PM
make: *** No rule to make target 'gconfig'. Stop. cswake Slackware 4 10-10-2004 01:13 PM
automake problem / make doesn't work anymore deadlove75 Mandriva 0 06-23-2004 06:53 PM

All times are GMT -5. The time now is 04:50 PM.

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