Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to export a Makefile from a Java Eclipse project?

So I have this Java project made up of several classes, some external JAR files and an executable Java program. I would like to export the whole code and external JARS to an external directory and to produce a Makefile to build the program with all the dependencies. Is there an automated way to do it?

Thank you
Tunnuz

like image 994
tunnuz Avatar asked Mar 04 '11 12:03

tunnuz


People also ask

How do I open Makefile project in Eclipse?

Select File > New > Project... from the main menu. Expand the C/C++ group. Select Makefile Project with Existing Code. Click on Next.

What is Makefile in eclipse?

If you create in Eclipse a project with “Makefile Project from Existing Code”, then it means that you have to supply the make file, it will not be an automake project (make files generated).

What is make target in Eclipse?

A "make target" provides a way for developers to interactively select a makefile target from within the Eclipse environment. It is assumed that the makefile is named makefile , which will allow it to run with the default build tool configuration. This can be changed but is cleaner if defaults are used.


1 Answers

I think I understand the question. Of course if you use an external build system like maven or ant, then we are decoupling the build process from the IDE. (But in some cases the IDE does integrate pretty closely with the build tool.)

But if you want to continue building using eclipse and to generate an ant file one fine day, then there is a tool for that. Its called EBuild. It leverages all the classpath information that eclipse already has and builds an generic ant file out of it.

like image 137
uncaught_exceptions Avatar answered Sep 22 '22 23:09

uncaught_exceptions