0

我有以下生成文件:

1 MODULES_DIR := /lib/modules/$(shell uname -r)
2 KERNEL_DIR := ${MODULES_DIR}/build
3 
4 obj-m += module.o
5 
6 all:
7         make −C $(KERNEL_DIR) M=$(PWD) modules;
8 clean:
9         make −C /lib/modules/$(shell uname −r)/build M=$(PWD) clean;

调用 make 时出现以下错误:

make[1]: *** No rule to make target `−C'.  Stop.

有人知道为什么吗?我是新来的。谢谢。

4

1 回答 1

1

Are you sure that the dash in the -C is a normal dash character (ASCII code 45)? It looks to me like you may have added some fancy unicode or UTF hyphen character instead.

于 2015-02-12T15:05:36.090 回答