Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fb297da

Browse files
committed
Remove space between rule and colon in make
1 parent edfeddc commit fb297da

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

snippets/make.snippets

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,22 @@ snippet base
44
CC = gcc
55
CFLAGS = -g -Wall
66

7-
all : $1
7+
all: $1
88

9-
%.o : %.c
9+
%.o: %.c
1010
$(CC) $(CFLAGS) -c -o $@ $<
1111

12-
${1:out} : $1.o
12+
${1:out}: $1.o
1313
$(CC) $(CFLAGS) -o $@ $+
1414

15-
clean :
15+
clean:
1616
rm -f *.o core.*
1717

18-
mrproper : clean
18+
mrproper: clean
1919
rm -f $1
2020
# add
2121
snippet add
22-
${1:out} : $1.o
22+
${1:out}: $1.o
2323
$(CC) $(CFLAGS) -o $@ $+
2424
# print
2525
snippet print

0 commit comments

Comments
 (0)