Unix/Linux Forum: configure-make-make install - Unix/Linux Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

configure-make-make install Rate Topic: -----

#1 User is offline   whatever84 

  • User Level: 4/10
  • PipPipPipPip
  • Group: Members
  • Posts: 95
  • Joined: 05-July 06

Posted 18 February 2009 - 11:55 AM

Hello everybody,

I am working on building software, and I am "nearly" done with this.
What I need now is to have the appropriate (well-known) procedures
for installing/running a software under linux. I made a quick search on
the Internet on "how to install a software under linux", and I realized that
"most" linux software is installed using these commands sequence:

1. $./configure
2. $make
3. $make install

Well, I like to have my software to be installed/ran using that sequence.
For the moment, I am not interested in step1, where I want to start from
step2. My questions:
1. What is the difference between "make" and "make install"?
2. What is the input and output of each of them?
3. What is the main difference between .sh file and makefile?
4. What is better for building java-based software "makefile" or "ant"?
(note: I am not familiar with any of these concepts/tools)

Thanks,
0

#2 User is offline   eggi 

  • User Level: 6/10
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 311
  • Joined: 25-November 07
  • Location:Grayslake, IL USA

Posted 19 February 2009 - 06:13 AM

Hey There,

I would say you should definitely do the configure step, since it usually creates the Makefile

For your q's

1. What is the difference between "make" and "make install"?

this depends. Every Makefile is unique. If you can follow the basic setup (left hand side of colon equals expression, right hand side of colon equals action, to put it very simply), you should be able to read the Makefile and determine exactly which each does.
Generally, make will just compile the binaries. make install will make the binaries and install them in whatever the default local directory for installation (that'll be in in the Makefile. A lot of times, you can just skip make and run make install, since make is a dependency of make install and will get run if you don't call it before running make install - that's assuming you're building from a reputable source package

2. What is the input and output of each of them?

For each, the input is variable. you shouldn't have to pass any args to make, but if you don't run configure, you should just read the manpage, because you'll have to pass a lot of arguments. The output for both is just the actions that are being executed in the makefile

3. What is the main difference between .sh file and makefile?

.sh is a shell script and a makefile is a makefile, which is its own type of script with different rules

4. What is better for building java-based software "makefile" or "ant"?

In my opinion, ant

Best wishes,

Mike



View Postwhatever84, on Feb 18 2009, 05:55 AM, said:

Hello everybody,

I am working on building software, and I am "nearly" done with this.
What I need now is to have the appropriate (well-known) procedures
for installing/running a software under linux. I made a quick search on
the Internet on "how to install a software under linux", and I realized that
"most" linux software is installed using these commands sequence:

1. $./configure
2. $make
3. $make install

Well, I like to have my software to be installed/ran using that sequence.
For the moment, I am not interested in step1, where I want to start from
step2. My questions:
1. What is the difference between "make" and "make install"?
2. What is the input and output of each of them?
3. What is the main difference between .sh file and makefile?
4. What is better for building java-based software "makefile" or "ant"?
(note: I am not familiar with any of these concepts/tools)

Thanks,

The greatest viral marketing idea of all time, get your copy of this Free Report now!
----
Linux Tips, Trick and Advice -- The Linux and Unix Menagerie
0

#3 User is offline   whatever84 

  • User Level: 4/10
  • PipPipPipPip
  • Group: Members
  • Posts: 95
  • Joined: 05-July 06

Posted 21 February 2009 - 09:42 AM

Thanks for your response. Do you know about any existing tool for generating "java makefile"
automatically? Something like ant builder plugin in eclipse.. My search revealed that whatever
automatic makefile builder is C/C++ based.
0

#4 User is offline   eggi 

  • User Level: 6/10
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 311
  • Joined: 25-November 07
  • Location:Grayslake, IL USA

Posted 23 February 2009 - 02:49 AM

Hey There,

No problem. Glad to help out :)

Check out autoconf - it has java makefile support:

http://www.nabble.co...a-td903177.html

or just to go gnu.org and follow the trail from there :)

Best wishes,

Mike
The greatest viral marketing idea of all time, get your copy of this Free Report now!
----
Linux Tips, Trick and Advice -- The Linux and Unix Menagerie
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users