zoukankan      html  css  js  c++  java
  • makefile:2: *** 遗漏分隔符 。 停止

    from http://hi.baidu.com/��֮��/blog/item/8ec00e2aca65a525d42af11b.html

    我们在编写完makefile,然后在终端中

    $make
    出现“makefile:2: *** 遗漏分隔符 。 停止。”问题,原因是在编写makefile文件时:
    all:
    gcc -o helloworld helloworld.c
    fresh:
    rm -rf Makefile
    clean:
    rm -rf helloworld helloworld.o
    install:
    cp helloworld /usr/bin
    uninstall:
    rm -rf /usr/bin/helloworld

    gcc、rm、cp前面是tab分割符,不能用空格,否则会出现:

    “makefile:2: *** 遗漏分隔符 。 停止。”
    “makefile:4: *** 遗漏分隔符 。 停止。”
    “makefile:6: *** 遗漏分隔符 。 停止。”
    “makefile:8: *** 遗漏分隔符 。 停止。”
    “makefile:10: *** 遗漏分隔符 。 停止。”
    这样的错误提示。

  • 相关阅读:
    (31)对象的克隆
    (30)批处理文件.bat
    06.v-on的修饰符
    06.v-on参数问题
    06.2修饰符补充
    06.1v-on基础+-.
    03.data数据对象
    02.el挂载点
    02.5v-pre指令
    02.4v-text指令
  • 原文地址:https://www.cnblogs.com/MingZznet/p/3228332.html
Copyright © 2011-2022 走看看