0
有一些C代码:
apple.c
#include<stdio.h>
int main(void)
{
printf("apple\n");
return 0;
}
的Makefile
apple:
gcc -c [email protected]
gcc [email protected] -o [email protected]
$ make apple
和它完美的作品。但是,如果我修改Makefile
为:
apple:
gcc -c $1.c
gcc $1.o -o $1
$ make apple
它不工作。只有一个参数时,[email protected]
和$1
之间有什么区别?