小编ItM*_*ItM的帖子

所有 Makefile 都已损坏

我不能再运行任何 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 有更新,但就是这样。

makefile make

3
推荐指数
1
解决办法
282
查看次数

标签 统计

make ×1

makefile ×1