From 371110a991a550da519233743e9759fd761fd6af Mon Sep 17 00:00:00 2001 From: Corentin Peuvrel Date: Sat, 11 Apr 2015 00:16:34 +0200 Subject: [PATCH] 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) --- snippets/make.snippets | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/snippets/make.snippets b/snippets/make.snippets index ec131ba..ece9b19 100644 --- a/snippets/make.snippets +++ b/snippets/make.snippets @@ -17,6 +17,11 @@ snippet base mrproper : clean rm -f $1 +# add +snippet add + ${1:out} : $1.o + $(CC) $(CFLAGS) -o $@ $+ + # ifeq snippet ifeq ifeq (${1:cond0},${2:cond1})