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.
|