Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » How to tell eclipse that my makefile is in a subdirectory?
How to tell eclipse that my makefile is in a subdirectory? [message #64549] Mon, 17 March 2003 15:27 Go to next message
Markus Karg is currently offline Markus Karg
Messages: 18
Registered: July 2009
Junior Member
Eclipse CDT assumes the makefile to be named makefile and to be found in the
root directory of the project. How can I tell adjust eclipse in a way that
allows me to have the makefile in a subdirectory and that it has a different
name?

Thanks
Markus
Re: How to tell eclipse that my makefile is in a subdirectory? [message #64573 is a reply to message #64549] Mon, 17 March 2003 20:47 Go to previous messageGo to next message
Eclipse User
Originally posted by: skendall.theedge.ca

I am not sure if there is a better way to do this, but I just put a
basic makefile in the project root that calls my makefiles in the subdirs.

all: sources

sources:
$(MAKE) -C src

Hopefull that should work.

Sid

Markus Karg wrote:
> Eclipse CDT assumes the makefile to be named makefile and to be found in the
> root directory of the project. How can I tell adjust eclipse in a way that
> allows me to have the makefile in a subdirectory and that it has a different
> name?
>
> Thanks
> Markus
>
>
Re: How to tell eclipse that my makefile is in a subdirectory? [message #64594 is a reply to message #64549] Mon, 17 March 2003 20:59 Go to previous messageGo to next message
Eclipse User
Originally posted by: javacard.hotmail.com

hi,
you can use subdir's makefile after you specified the following in
current makefile:
****************************
all install clean:
make -C src/appdir $@
****************************

Markus Karg wrote:

> Eclipse CDT assumes the makefile to be named makefile and to be found in the
> root directory of the project. How can I tell adjust eclipse in a way that
> allows me to have the makefile in a subdirectory and that it has a different
> name?

> Thanks
> Markus
Re: How to tell eclipse that my makefile is in a subdirectory? [message #64685 is a reply to message #64573] Tue, 18 March 2003 16:27 Go to previous messageGo to next message
Markus Karg is currently offline Markus Karg
Messages: 18
Registered: July 2009
Junior Member
Sounds as an acceptable workaround, but it would really be more cool to have
the possibility in CDT to just type in the path and name of the makefile. Is
there a CDT wishlist somewhere...? :-)

Have Fun
Markus

"Sid Kendall" <skendall@theedge.ca> schrieb im Newsbeitrag
news:b55tpj$o3u$1@rogue.oti.com...
> I am not sure if there is a better way to do this, but I just put a
> basic makefile in the project root that calls my makefiles in the subdirs.
>
> all: sources
>
> sources:
> $(MAKE) -C src
>
> Hopefull that should work.
>
> Sid
>
> Markus Karg wrote:
> > Eclipse CDT assumes the makefile to be named makefile and to be found in
the
> > root directory of the project. How can I tell adjust eclipse in a way
that
> > allows me to have the makefile in a subdirectory and that it has a
different
> > name?
> >
> > Thanks
> > Markus
> >
> >
>
Re: How to tell eclipse that my makefile is in a subdirectory? [message #64707 is a reply to message #64685] Wed, 19 March 2003 04:11 Go to previous messageGo to next message
Eclipse User
Originally posted by: johan.nosp.m.appeal.se

Markus Karg wrote:
> Is there a CDT wishlist somewhere...? :-)

http://bugs.eclipse.org/bugs/buglist.cgi?short_desc_type=all wordssubstr&short_desc=&product=CDT&long_desc_ty pe=allwordssubstr&long_desc=&bug_file_loc_type=allwo rdssubstr&bug_file_loc=&keywords_type=allwords&k eywords=&bug_status=NEW&bug_status=ASSIGNED&bug_ status=REOPENED&bug_status=RESOLVED&resolution=LATER &resolution=REMIND&resolution=---&bug_severity=e nhancement&emailtype1=substring&email1=&emailtyp e2=substring&email2=&bugidtype=include&bug_id=&a mp;votes=&changedin=&chfieldfrom=&chfieldto=Now& amp;chfieldvalue=&namedcmd=Recent+bugs&newqueryname= &field0-0-0=noop&type0-0-0=noop&value0-0-0=

//Johan
Re: How to tell eclipse that my makefile is in a subdirectory? [message #65032 is a reply to message #64594] Mon, 24 March 2003 04:13 Go to previous messageGo to next message
Eclipse User
Originally posted by: okoltermann.gmx.de

Hi,

I think that in an older Eclipse version (maybe even 1.0) I was able
to select any subdir of the project and select Build in the context
menu to run the makefile in that directory. But memory fades and it's
true that this functionality has gone. Does somebody know anything
about this?

bye,
OK.
Re: How to tell eclipse that my makefile is in a subdirectory? [message #65181 is a reply to message #65032] Tue, 25 March 2003 12:58 Go to previous messageGo to next message
Eclipse User
Originally posted by: cyates.uidaho.edu

You can do it in 2.0 also.

- CY

"Oliver Koltermann" <okoltermann@gmx.de> wrote in message
news:uwuipruu9.fsf@gmx.de...
>
> Hi,
>
> I think that in an older Eclipse version (maybe even 1.0) I was able
> to select any subdir of the project and select Build in the context
> menu to run the makefile in that directory. But memory fades and it's
> true that this functionality has gone. Does somebody know anything
> about this?
>
> bye,
> OK.
Re: How to tell eclipse that my makefile is in a subdirectory? [message #66225 is a reply to message #65181] Tue, 08 April 2003 05:19 Go to previous message
Eclipse User
Originally posted by: okoltermann.gmx.de

"Chad Yates" <cyates@uidaho.edu> writes:

> > I think that in an older Eclipse version (maybe even 1.0) I was able
> > to select any subdir of the project and select Build in the context
> > menu to run the makefile in that directory.

> You can do it in 2.0 also.

How? If I try it now it always tries to run make in the projects root
dir. Could this be QNX specific - I'm using QNX Momentics 6.2.1? (It's
saying Eclipse 2.0.2)

Would be very interested in this, bye,
OK.
Previous Topic:Two C++ template questions
Next Topic:Cannot debug: "No executable specified"
Goto Forum:
  


Current Time: Mon Sep 01 07:40:20 EDT 2014

Powered by FUDForum. Page generated in 0.01790 seconds