Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 07-16-2003, 04:11 PM   #1
Registered: Apr 2002
Location: Carleton University, Ontario, Canada
Distribution: Free yourself from distributions! Source is where it's at
Posts: 40

Rep: Reputation: 15
Modifying a makefile?

Hi all

I am attempting to install mod_mono, a module for Apache 2.0. After having trouble with the binaries in the rpm, I downloaded the source and attempted to compile that. After tracking down all dependencies required and setting the path so all the headers could be found, I encountered a slight problem:
When running 'make', all goes well until libtool is called. My header and *.la files for glib (a dependency) are stored under /home/myUserName/glib-2.0.7. However, the call which make uses is "../libtool yaddayaddayadda -someflag ..//home/myUserName/glib-2.0.7/fileItWants"
Make coughs up an error message claiming that it can't find the file. So, I went to emacs and changed the bits of code inside Makefile which specify those bogus directories to a more suitable directory (namely, the right one) However, when I run Make again, it does the same action! The Makefile itself remains as I left it however. Is there some special thing I have to do to alter a Makefile, or is make using another file entirely during its process of linking/compilation?

Last edited by CestusGW; 07-16-2003 at 04:13 PM.
Old 07-16-2003, 05:13 PM   #2
LQ Newbie
Registered: Jun 2003
Posts: 14

Rep: Reputation: 0
Make often uses makedepend to create a file of dependencies, for quick reference next time it starts up. The file is usually called
"". You can safely delete this.

To easily see if there are other generated config files created, use
$ ls -ltr

This will show you a listing with the most recently modified files at
the bottom of the listing.
Old 07-16-2003, 05:32 PM   #3
LQ Guru
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Linux Mint 17, Debian 8
Posts: 7,863

Rep: Reputation: 311Reputation: 311Reputation: 311Reputation: 311
You can also solve this problem by making symbolic links from where make is looking to where the files really are.
Old 07-16-2003, 06:45 PM   #4
Registered: Apr 2002
Location: Carleton University, Ontario, Canada
Distribution: Free yourself from distributions! Source is where it's at
Posts: 40

Original Poster
Rep: Reputation: 15
Ah thank you - I'll investigate/delete those files you referred to. As to making a symbolic link, thought didn't occur to me, but it wouldn't work anyways since the filepath specified by the Makefile is invalid ("..//home/")


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
modifying makefile after modified C source zerointeger Programming 6 10-06-2005 02:15 PM
Modifying Kweather zmaster Linux - Software 4 06-29-2005 01:40 PM
How to modify or QiangWan Linux - Newbie 1 05-17-2005 12:07 PM
how to get (makefile -f makefile )output into the textview widget in Pygtk sailu_mvn Programming 3 02-28-2005 04:57 AM
generate Makefile from without calling ./configure ? chris78 Programming 2 05-02-2004 01:23 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:54 PM.

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