The UNIX and Linux Forums
Forum Home
Linux and Unix Man Pages
Search Forums
Search Community Posts
Today's Posts
Quick Links
Man Pages
RedHat Commands
OpenSolaris Commands
Linux Commands
SunOS Commands
FreeBSD Commands
All UNIX Man Pages
All Linux Man Pages
Full Man Repository
Login or Register to Ask a Question and Join Our Community
Search Forums
Show Threads .
Show Posts
Tag Search
Advanced Search
Quick Links
Contact Us
Forum Rules
Today's Posts
FAQ
Pictures & Albums
All Albums
Miscellaneous
What is My IP
Whois
Mark Forums Read
UNIX for Advanced & Expert Users
makefile2
Tags
advanced
Login to Discuss or Reply to this Discussion in Our Community
Thread Tools
Search this Thread
Top Forums
UNIX for Advanced & Expert Users
makefile2
#
1
12-22-2004
raagbansal
Registered User
3,
0
Join Date: Dec 2004
Last Activity: 22 December 2004, 5:10 PM EST
Posts: 3
Thanks Given: 0
Thanked 0 Times in 0 Posts
makefile2
What does && mean in makefile
Example
Target :
cd lib/src && $(MAKE) $(MAKE_FLAGS_HOLDER) target_2
raagbansal
View Public Profile for raagbansal
Find all posts by raagbansal
#
2
12-22-2004
norsk hedensk
Registered User
1,025,
1
Join Date: Jul 2002
Last Activity: 26 May 2006, 8:38 PM EDT
Location: new york
Posts: 1,025
Thanks Given: 0
Thanked 1 Time in 1 Post
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.
norsk hedensk
View Public Profile for norsk hedensk
Find all posts by norsk hedensk
#
3
12-22-2004
Perderabo
Administrator Emeritus
9,926,
461
Join Date: Aug 2001
Last Activity: 26 February 2016, 12:31 PM EST
Location: Ashburn, Virginia
Posts: 9,926
Thanks Given: 63
Thanked 461 Times in 270 Posts
Actually command_b is executed upon
successful
completion of command _a. If the cd fails, no make will occur.
Perderabo
View Public Profile for Perderabo
Find all posts by Perderabo
#
4
12-22-2004
zazzybob
Registered User
2,187,
25
Join Date: Dec 2003
Last Activity: 2 October 2017, 12:19 PM EDT
Location: /dev/null
Posts: 2,187
Thanks Given: 3
Thanked 25 Times in 23 Posts
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
zazzybob
View Public Profile for zazzybob
Find all posts by zazzybob
#
5
12-22-2004
norsk hedensk
Registered User
1,025,
1
Join Date: Jul 2002
Last Activity: 26 May 2006, 8:38 PM EDT
Location: new york
Posts: 1,025
Thanks Given: 0
Thanked 1 Time in 1 Post
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
norsk hedensk
View Public Profile for norsk hedensk
Find all posts by norsk hedensk
Login or Register to Ask a Question
Previous Thread
|
Next Thread
Login or Register to Ask a Question
Member Badges and Information Modal
×