The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com



SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
is there kind of good utility that convert make files to dsp? umen UNIX for Dummies Questions & Answers 1 10-04-2006 08:09 PM
Make utility bigmoon SUN Solaris 2 10-10-2005 09:48 PM
MAKE utility victorvvk High Level Programming 4 06-30-2005 10:23 AM
Make utility victorvvk High Level Programming 4 06-25-2005 01:40 AM
Using make utility to create an mini-app Yifan_Guo High Level Programming 1 03-19-2005 05:35 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 01-30-2007
alex_5161 alex_5161 is offline
Registered User
  
 

Join Date: Jan 2007
Location: Detroit
Posts: 124
Make utility - some Qs togurus..

(Sorry for previous not on enlish! I did not realized it is english forum. )
I am looking for help with Make utility. I could not get help from the 'man' pages.
1. About Macro (as a variable): It is clear about defining any macro in beginning or in command line, but isn't it no way to redefine a macro during a processing?
I would need to setup some indicator variable in a dependency section and make some action in futher processing depend on its value.
Example:
IND1=0
SECT_0: DEP_1
<command>; \
<command>; \
if [ IND1 -eq 1 ]; then <command>; fi

DEP_1:
<command>; \
IND1=1
It comes out that the re-definition IND1 is not heppening. Maybe I should do it differently?

Another related problem that it seems there is no way to change an environment variable from any section. Seems that any section is processed in separate subshell?! Is it true?

So, is there any way to have a some kind of 'variable' in makefile, not just a 'constant' as it looks like with macro?

2. Initialization section: I know, it is .INIT: ..., but how to exit makefile if it would be nessesary or prevent to execute all available section if makefile is ran with no specific section name?
 

Bookmarks

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 07:40 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