makefile2


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users makefile2
# 1  
Old 12-22-2004
makefile2

What does && mean in makefile

Example

Target :
cd lib/src && $(MAKE) $(MAKE_FLAGS_HOLDER) target_2
# 2  
Old 12-22-2004
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.
# 3  
Old 12-22-2004
Actually command_b is executed upon successful completion of command _a. If the cd fails, no make will occur.
# 4  
Old 12-22-2004
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
# 5  
Old 12-22-2004
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 rustySmilie
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question