-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (29 loc) · 831 Bytes
/
Makefile
File metadata and controls
39 lines (29 loc) · 831 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
SOURCE := main.c opts.c directive.c file_utils.c error.c dictate.c remove_all.c
SOURCE := $(addprefix source/, ${SOURCE})
ifeq (${DEBUG}, 1)
CPPFLAGS += -DDEBUG
CFLAGS += -O0 -ggdb -Wall -Wpedantic
CFLAGS += -fsanitize=address
ifeq (${CC}, clang)
CFLAGS += -Weverything -Wno-switch-default -std=c23 -Wno-pre-c23-compat
endif
else
CFLAGS += -O3 -flto=auto -fomit-frame-pointer
endif
CFLAGS += -Wno-unused-label
OUT := vimdir
${OUT}: ${SOURCE}
${CC} ${CPPFLAGS} ${CFLAGS} -o ${OUT} ${SOURCE}
test:
cmdtest --fast
ls_colors:
tclsh script/gen_syntax_from_ls_colors.tcl > object/ls_colors.vimdir
plug -g -e ls_colors object/ls_colors.vimdir .vim/syntax/vimdir.vim
bundle:
tar -c .vim/ -f vimdir.tar
install: bundle
tar -x -f vimdir.tar --dereference -C ~/
clean:
-rm ${OUT}
-rm vimdir.tar
.PHONY: test