开发者

How can I call a specific target from my makefile?

开发者 https://www.devze.com 2023-01-21 21:39 出处:网络
a: @echo 1 b: @echo 2 c: @if [ ! -dsomefolder ]; \\ then \\ # how do I i开发者_开发知识库nvoke target b here?
a:
   @echo 1

b:
   @echo 2

c:
   @if [ ! -d  somefolder ]; \
   then \
 # how do I i开发者_开发知识库nvoke 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.


Just say make b

0

精彩评论

暂无评论...
验证码 换一张
取 消