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 Search this Thread Display Modes
  #1  
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  
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  
Old 12-22-2004
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,667
Actually command_b is executed upon successful completion of command _a. If the cd fails, no make will occur.
Reply With Quote
  #4  
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  
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 Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 07:12 AM.


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 Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0