/usr/share/vim-scripts/vimplate-templates/Makefile-C.tt is in vim-scripts 20130814ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | ##################################################
# Author: [% user.firstname %] [% user.lastname %] <[% user.mail %]>
# Date: [% date('C', '%Y-%m-%d') %]
##################################################
PROGS = [% input('list of program names:') %]
DEBUG = -O0 -ggdb -pg
CFLAGS += -Wall -pedantic -ansi ${DEBUG}
LDFLAGS +=
CPPFLAGS +=
FLAGS += ${CFLAGS} ${LDFLAGS} ${CPPFLAGS}
all: ${PROGS}
${PROGS}: % : %.c
${CC} -o $@ ${FLAGS} $<
test: all
@for prog in ${PROGS}; do \
echo $$prog; ./$$prog; \
done
clean:
${RM} *.o core ${PROGS}
|