The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-21-2004
Registered User
 

Join Date: Dec 2004
Posts: 3
makefile2

What does && mean in makefile

Example

Target :
cd lib/src && $(MAKE) $(MAKE_FLAGS_HOLDER) target_2
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 12-22-2004
Registered User
 

Join Date: Jul 2002
Location: new york
Posts: 1,025
say you have command a and command b

Code:
./command_a && ./command_B
this will execute command a, then command b upon termination of comand a.
Reply With Quote
  #3 (permalink)  
Old 12-22-2004
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,452
Actually command_b is executed upon successful completion of command _a. If the cd fails, no make will occur.
Reply With Quote
  #4 (permalink)  
Old 12-22-2004
zazzybob's Avatar
Registered Geek
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
Quote:
Originally posted by Perderabo
Actually command_b is executed upon successful completion of command _a. If the cd fails, no make will occur.
Exactly. If you want command_b to be executed regardless, do:

command_a; command_b

Cheers
ZB
Reply With Quote
  #5 (permalink)  
Old 12-22-2004
Registered User
 

Join Date: Jul 2002
Location: new york
Posts: 1,025
Quote:
Originally posted by Perderabo
Actually command_b is executed upon successful completion of command _a. If the cd fails, no make will occur.
thats right.

im a bit rusty
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 03:56 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0