Redian新闻
>
How to Run this Makefile with condition control
avatar
How to Run this Makefile with condition control# Unix - 噫吁兮,危乎高哉
j*m
1
Hi,
I have the following makefile with condition control. Could anyone please tell
me how to pass the parameter "0"/"1"? I tried "make -f makefilename 0" and it
failed.
avatar
c*n
2
i've never seen this "condition control" thing,
but you can use "if" in gnu make

【在 j****m 的大作中提到】
: Hi,
: I have the following makefile with condition control. Could anyone please tell
: me how to pass the parameter "0"/"1"? I tried "make -f makefilename 0" and it
: failed.

avatar
b*s
3
this is a shell script, not exactly a make file ya.
just try "sh filename 0"

【在 j****m 的大作中提到】
: Hi,
: I have the following makefile with condition control. Could anyone please tell
: me how to pass the parameter "0"/"1"? I tried "make -f makefilename 0" and it
: failed.

avatar
k*e
4
$# is the count number of the command line parameters.
say,
'ls' - $# = 0
'ls filename' - $# = 1

tell
it

【在 b****s 的大作中提到】
: this is a shell script, not exactly a make file ya.
: just try "sh filename 0"

avatar
c*t
5
This is not a makefile. Do man make and/or find some makefile
tutorial online.

【在 j****m 的大作中提到】
: Hi,
: I have the following makefile with condition control. Could anyone please tell
: me how to pass the parameter "0"/"1"? I tried "make -f makefilename 0" and it
: failed.

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。