Geo
Geo

Reputation: 96867

How can I call a specific target from my makefile?

a:
   @echo 1

b:
   @echo 2

c:
   @if [ ! -d  somefolder ]; \
   then \
 # how do I invoke target b here?
   fi;

How can I invoke target b inside target c, based on my condition? Sort of like an antcall, if you're familiar with ant.

Upvotes: 2

Views: 3224

Answers (1)

Justin Ethier
Justin Ethier

Reputation: 134197

Just say make b

Upvotes: 4

Related Questions