The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google unix.com



High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Makefile NamrataGurav High Level Programming 7 10-07-2006 02:29 PM
about the makefile ligerdave High Level Programming 2 01-31-2006 01:21 AM
Using cut within makefile wvdeijk UNIX for Dummies Questions & Answers 2 12-14-2005 05:11 PM
makefile help pieter023 Shell Programming and Scripting 1 06-06-2005 01:20 AM
makefile ECBROWN UNIX for Dummies Questions & Answers 4 02-17-2005 12:01 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-12-2007
tantric tantric is offline
Registered User
  
 

Join Date: Apr 2007
Posts: 23
Makefile help

Hi,

What I want to do is for make to reconstruct the target even if its dependencies have not changed. So, even if if the dependent files do not have a more recent timestamp, the commands are executed.

The reason I want to do this..

1)someone executes make on solaris. We have a solaris binary.
2) Now someone should be able to run make on linux to generate the linux binary. (Without executing make clean to remove the already existing binary and .o file)

does anyone know how to do this ?

Thanks !!!
  #2 (permalink)  
Old 04-12-2007
reborg's Avatar
reborg reborg is offline Forum Staff  
Administrator
  
 

Join Date: Mar 2005
Location: Ireland
Posts: 4,209
Can you elaborate a little? I'm not exactly clear how what you want to do would be different from a make clean.


Would it be accurate to say you want to clobber anything that has already been built if you do another make?
  #3 (permalink)  
Old 04-12-2007
tantric tantric is offline
Registered User
  
 

Join Date: Apr 2007
Posts: 23
Hi reborg, hmm not sure what you mean by clobber..

So, I execute make once. The object files are built from the source files. The executable is then built from these object files.

Now if I run make again (without changing the source code) Nothing will happen because the files are already up to date and so nothing will be done.

What I want is, on running make again. The object files and the executables are built again.

let me know if this is clear..
  #4 (permalink)  
Old 04-12-2007
reborg's Avatar
reborg reborg is offline Forum Staff  
Administrator
  
 

Join Date: Mar 2005
Location: Ireland
Posts: 4,209
That's exactly what I though. Clobber means to overwrite an already existing file. You should be able to achieve this by simply removing the make state (.make.state) files, which should give make forget about what is already built.
  #5 (permalink)  
Old 04-13-2007
manoj.rana manoj.rana is offline
Registered User
  
 

Join Date: Mar 2007
Posts: 16
Makefile

I think. if u don't have binary on linux or solaris then u r makefile must execute
and generate a binary for that machine.
Closed Thread

Bookmarks

Tags
linux commands

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:04 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0