Add snippet 'add' in Makefile (new binary)
It adds the rule for a new binary (from a source file with the same name as the binary, but with a ".c" extension)
This commit is contained in:
parent
e5e94eb42c
commit
371110a991
@ -17,6 +17,11 @@ snippet base
|
|||||||
|
|
||||||
mrproper : clean
|
mrproper : clean
|
||||||
rm -f $1
|
rm -f $1
|
||||||
|
# add
|
||||||
|
snippet add
|
||||||
|
${1:out} : $1.o
|
||||||
|
$(CC) $(CFLAGS) -o $@ $+
|
||||||
|
|
||||||
# ifeq
|
# ifeq
|
||||||
snippet ifeq
|
snippet ifeq
|
||||||
ifeq (${1:cond0},${2:cond1})
|
ifeq (${1:cond0},${2:cond1})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user