LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-20-2006, 06:44 PM   #1
moob8
Member
 
Registered: Sep 2006
Distribution: slackware
Posts: 132

Rep: Reputation: 15
manually decyphering Makefile


So I've got a package that I've been trying to build on my system. it's been a fight. ./configure gave me problems. I eventually fixed them. Then the make gave me new problems. I eventually fixed them as well. Now the "make install" part is failing. I don't expect this part to ever fail since as far as I know it just copies files.

So what I intend to do now (since neither google nor myself seems to know this problem) is to manually do the "make install" part. The problem is the Makefile is incomprehensible (lot's of, "ok he uses that variable here, hmmm, yet nowhere is it defined"). I need to decode it to figure out. Clue? Tip? Linkie? Automatic "Makefile to string of copy commands in a textfile" program?

Thanks.
 
Old 10-20-2006, 07:21 PM   #2
pddm
Member
 
Registered: Sep 2005
Distribution: Mint 19.2
Posts: 112

Rep: Reputation: 15
It sounds really strange that someone would publish a noncompilable package.

Do you have the name of the package you are trying to compile?

IF you know that the files you need were created during compilation you could just copy them manually to their destination.
 
Old 10-21-2006, 02:56 PM   #3
moob8
Member
 
Registered: Sep 2006
Distribution: slackware
Posts: 132

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by pddm
It sounds really strange that someone would publish a noncompilable package.
agreed.

Quote:
Do you have the name of the package you are trying to compile?
avidemux2

Quote:
IF you know that the files you need were created during compilation you could just copy them manually to their destination.
which returns us to the original question of how to decypher the Makefile.
 
Old 10-22-2006, 08:04 AM   #4
TomGibbons
Member
 
Registered: Sep 2003
Location: San Diego, CA
Distribution: Fedora 8 and CentOS 5.1
Posts: 31

Rep: Reputation: 15
You could post the Makefile and we could take a look.
 
Old 10-22-2006, 05:09 PM   #5
truthfatal
Member
 
Registered: Mar 2005
Location: Winnipeg, MB
Distribution: Raspbian, Debian, Slackware, OS X
Posts: 443
Blog Entries: 9

Rep: Reputation: 32
You could look at the makefiles for simpler programs to get an Idea of the general layout.

For example, in xchat-systray's makefile near the top under #UNIX VARS
is "install = cp" "mkdir = mkdir" amongst other variables. near the bottom of the file is
Code:
install: all
	$(mkdir) -p $(plugindir)
	$(install) $(plugin) $(plugindir)/$(plugin)
	$(install) src/images/Win32Tray $(plugindir)/ -r -f
	$(install) src/images/GTKTray $(plugindir)/ -r -f
	$(install) src/images/Menu $(plugindir)/ -r -f
That's probably an extremely simple example.... but It might give you an Idea of what to look for.
 
Old 10-27-2006, 05:29 PM   #6
moob8
Member
 
Registered: Sep 2006
Distribution: slackware
Posts: 132

Original Poster
Rep: Reputation: 15
Well I tried somethign stupid with my avidemux and it actually worked. I browsed around the directory that I was compiling avidemux in. Found an aprox 8 meg file called "avidemux". execute flag was set on it. I ran that. Bam: it worked. So I then manually copied that one file to /usr/local/bin. In this specific instance I lucked out because it was statically built. We've become a great fan of statically built binaries. So there is no longer a need to decypher that makefile.

However, I've got another instance of this same problem on another program. This program is twin, a sort of text mode window manager (think screen on steriods? ). The program congigurres, makes with no trouble. make install craps out right away, falsly claming that I was attmepting to copy files onto already installed files. Here is the Makefile.
Code:
#
# This file was generated automatically by scripts/Makefiles.sh. Do not edit.
#

# TOP_SRCDIR
T:=

# THIS_SRCDIR
S:=

# TOP_BUILDDIR
B:=

include $(S)Makefile.sub
Not a big help, is it?
 
  


Reply



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, makefile, makefile.in and makefile.am Fond_of_Opensource Linux - Newbie 1 09-12-2006 08:35 PM
what is the meaning of Makefile,Makefile.am,Makefile.in cynthia_thomas Linux - General 3 12-08-2005 05:00 AM
How to modify makefile.in or makefile.am QiangWan Linux - Newbie 1 05-17-2005 11:07 AM
how to get (makefile -f makefile )output into the textview widget in Pygtk sailu_mvn Programming 3 02-28-2005 03:57 AM
generate Makefile from Makefile.in without calling ./configure ? chris78 Programming 2 05-02-2004 12:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:39 AM.

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