如何从我的Makefile中调用特定目标? [英] How can I call a specific target from my makefile?

查看:87
本文介绍了如何从我的Makefile中调用特定目标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

a:
   @echo 1

b:
   @echo 2

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

如何根据我的情况在目标c中调用目标b?如果您熟悉ant,就有点像antcall.

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

推荐答案

只要说make b

这篇关于如何从我的Makefile中调用特定目标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆