maketemp (169B)
1 # -*- mode: snippet -*- 2 # name: maketemp 3 # key: maketemp 4 # -- 5 CC = ${1:clang++} 6 CFLAGS = -std=c++14 -Wall 7 8 ${2:test}: $2.cc 9 $(CC) $(CFLAGS) $< -o $@ 10 clean: 11 rm ./$2 12 $0
My emacs configuration, done in a literate programming fashion using org-mode
git clone git://git.shimmy1996.com/emacs.d.git
1 # -*- mode: snippet -*- 2 # name: maketemp 3 # key: maketemp 4 # -- 5 CC = ${1:clang++} 6 CFLAGS = -std=c++14 -Wall 7 8 ${2:test}: $2.cc 9 $(CC) $(CFLAGS) $< -o $@ 10 clean: 11 rm ./$2 12 $0