TB12 about writing makefile file error: Missing delimiter. Stop it

Source: Internet
Author: User
Here is a makefile file that I wrote for the kernel module

——————————————————————————————————————————————————————

1 Ifneq ($ (kernelrelease),)

2 obj-m: = hello.o calculate.o

3 Else
4
5 Kdir: =/lib/modules/2.6.18-53.el5/build
6 All:
7 make-c $ (kdir) m=$ (PWD) modules
8 Clean:
9 rm-f *.ko *.o *.mod.o *.mod.c *.symvers

Ten endif
——————————————————————————————————————————————————————

1. There is a space behind the first line Ifneq

2. The second and fifth lines: = Each side has a space on both sides of the alignment (experience, both sides of the alignment can be said; = two or both spaces or not at the same time)

3. Lines seventh and Nineth make and RM must be preceded by a tab tab, rather than using the spacebar easily.

4. This can be a vulnerability, when using the Kate Editor to print tabs, the system still prompts the error "missing separator." Stop ". When you use a text editor to make a tab, you can do it normally.

TB12 about writing makefile file error: Missing delimiter. Stop it

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.