由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - How to Run this Makefile with condition control
相关主题
[转载] makefile ruleswhat is wrong with makefile?
interesting problemRe: SOS!!! (about FLTK)
cxterm compile英雄,救命啊!!!
my script Re: how would you do this?Help: failed to compile cxterm with cc
[转载] can awk take user supplied parameters?[转载] makefile question. urgent!!!!!!!!!!!!!!!!!!!!!!!!
Questions about MakefileRe: [转载] makefile question. urgent!!!!!!!!!!!!!!!!!!!!!!!!
怎样写 makefileMakefile help!
help on cxtermwrite makefile
相关话题的讨论汇总
话题: makefile话题: run话题: condition话题: control话题: make
进入Unix版参与讨论
1 (共1页)
j****m
发帖数: 1
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.
c******n
发帖数: 4965
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.

b****s
发帖数: 472
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.

k**e
发帖数: 86
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"

c*****t
发帖数: 1879
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.

1 (共1页)
进入Unix版参与讨论
相关主题
write makefile[转载] can awk take user supplied parameters?
Re: Makefile help!( -g option)Questions about Makefile
[转载] emacs下编译程序,怎么指定路径?怎样写 makefile
[转载] 请教三个关于emacs和perl的问题help on cxterm
[转载] makefile ruleswhat is wrong with makefile?
interesting problemRe: SOS!!! (about FLTK)
cxterm compile英雄,救命啊!!!
my script Re: how would you do this?Help: failed to compile cxterm with cc
相关话题的讨论汇总
话题: makefile话题: run话题: condition话题: control话题: make