LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-29-2005, 05:43 AM   #1
irfanhab
Member
 
Registered: Jan 2004
Location: Pakistan
Distribution: OpenSuse 10.2, Slackware 11, Solaris 10
Posts: 415

Rep: Reputation: 34
make problem


Hi,

I'm working on a Qt program, now when I make a change to the source file, I 'make' the program and check the changes.

But now suddenly, even if I change the source file, and go 'make' in the shell it says:

Code:
make:nothing to be done for 'first'
I even recreated the make file, by going qmake and all, but still I cannot recompile the program!
Any clues??
 
Old 06-29-2005, 03:04 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Makefile from qmake should have 'make clean' option that removed all .o etc files. Then try to run make again. If it doesn't help check your time settings. See if your time is correct and if edit time of the modified files is correct.
 
Old 06-29-2005, 07:01 PM   #3
irfanhab
Member
 
Registered: Jan 2004
Location: Pakistan
Distribution: OpenSuse 10.2, Slackware 11, Solaris 10
Posts: 415

Original Poster
Rep: Reputation: 34
well if I do make clean, it will undo all the changes i have made to the autogenerated files
How does make know when to compile and when not to?
 
Old 06-30-2005, 03:36 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Make checks timestamps on source files and .o ones. So if you don't want to run the autogen script again (what may be hard if you add new files) edit them, then make should consider them as modified and compile.
 
Old 07-01-2005, 05:00 AM   #5
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: Mint, Armbian, NetBSD, Puppy, Raspbian
Posts: 3,515

Rep: Reputation: 239Reputation: 239Reputation: 239
it would help if you posted the make file
 
Old 07-01-2005, 12:38 PM   #6
puffinman
Member
 
Registered: Jan 2005
Location: Atlanta, GA
Distribution: Gentoo, Slackware
Posts: 217

Rep: Reputation: 31
If you want to make to think the files have changed without actually opening them up in an editor and messing with them, just use touch. It will change the modification time to the current time. So if it's a bunch of c files,

Code:
touch *.c
should then cause make to recompile everything.
 
  


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
make xconf;make gconf problem Soqool Linux - Newbie 3 06-12-2005 12:00 PM
Problem with Configure, Make, Make Install n8tgc Linux - Newbie 2 07-13-2004 03:16 PM
How to make rule for make install and make uninstall melinda_sayang Programming 1 06-14-2004 05:58 AM
make clean, make dep problem carscht Linux - Newbie 2 02-21-2004 10:32 AM
make dep,make clean,make bzImage problem Babba Linux - Newbie 2 01-08-2003 03:49 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:28 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