Makefile: 6: *** missing delimiter. Stop

HEADERS = schedule.h 

default: papcmp

program.o: schedule.c $(HEADERS)
    gcc -g -lnuma -lm -pthread schedule.c -lutil -lz -o schedule.o

program: schedule.o
    gcc schedule.o -o papcmp

clean:
    -rm -f schedule.o
    -rm -f papcmp
    -rm -f *.log dump.gz

This is the first time I'm trying to create a make file. and it looks like there is a mistake. could you help me? The line that is in has an error in accordance with the output. bold

+4
source share
1 answer

Make is very picky about spaces and tabs. Command lines should absolutely be indented with one tab, not spaces. You may need to configure the editor to create tab characters.

+16
source

Source: https://habr.com/ru/post/1544014/


All Articles