我不能再运行任何 Makefile 了。我得到:
./Makefile: line 1: sorter:: command not found
Run Code Online (Sandbox Code Playgroud)
Makefile的内容:
sorter: sorter.o
gcc sorter.o -o sorter
sorter.o: sorter.c
gcc -c sorter.c
test:
./run_test
check:
c_style_check sorter.c
clean:
rm -f sorter *.o
Run Code Online (Sandbox Code Playgroud)
令人惊讶的是,就在昨天,我所有的 Makefile 过去都运行良好。我不知道发生了什么,我想我的 Lubuntu 有更新,但就是这样。