Remove space between rule and colon in make

This commit is contained in:
Corentin Peuvrel 2015-04-16 18:55:07 +02:00
parent edfeddc7c1
commit fb297da38e

View File

@ -4,22 +4,22 @@ snippet base
CC = gcc
CFLAGS = -g -Wall
all : $1
all: $1
%.o : %.c
%.o: %.c
$(CC) $(CFLAGS) -c -o $@ $<
${1:out} : $1.o
${1:out}: $1.o
$(CC) $(CFLAGS) -o $@ $+
clean :
clean:
rm -f *.o core.*
mrproper : clean
mrproper: clean
rm -f $1
# add
snippet add
${1:out} : $1.o
${1:out}: $1.o
$(CC) $(CFLAGS) -o $@ $+
# print
snippet print