1,105,232 Community Members

how to run a makefile file on ubuntu ?

Member Avatar
begueradj
Junior Poster in Training
93 posts since Mar 2007
Reputation Points: -1 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

Hello

I have downloaded a source code written in C. There I found a Makefile file . Can you tell me how to run that "makefile" file from command line ?

thank you

Member Avatar
mikrosfoititis
Junior Poster in Training
74 posts since Nov 2011
Reputation Points: 0 [?]
Q&As Helped to Solve: 12 [?]
Skill Endorsements: 1 [?]
 
0
 

Hi, although I'm not sure this is the correct place for your post, try using 'make' command

Member Avatar
begueradj
Junior Poster in Training
93 posts since Mar 2007
Reputation Points: -1 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

thank you, but it does not with make Make_file_name

Member Avatar
mikrosfoititis
Junior Poster in Training
74 posts since Nov 2011
Reputation Points: 0 [?]
Q&As Helped to Solve: 12 [?]
Skill Endorsements: 1 [?]
 
0
 

Well, what's the output then?
P.S. If your makefile is named as "Makefile" which is a default, you can just type make.

Member Avatar
rsashwin
Newbie Poster
8 posts since Sep 2010
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

if your makefile is of extension someFileName.make , try using make -f someFileName.make

Member Avatar
NerdyChick27
Newbie Poster
8 posts since Sep 2011
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

I'm pretty sure you can rename it to makefile and just type make. I don't think that will affect anything in the makefile unless there's some special case in the file.


*edit: make sure you're in the correct directory on the command line when you type make or it obviously won't work

Member Avatar
biswajit.jgec
Newbie Poster
1 post since Feb 2014
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

first you make the path of your terminal to the downloaded package after that
write in the command line -------sudo make install

You
Post:
Start New Discussion
View similar articles that have also been tagged: