-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
74 lines (55 loc) · 1.32 KB
/
Makefile
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
BUILD := _build
VIM_NAMES := \
macro \
specialform \
qualifier \
function \
parameter \
variable \
constant \
cise
# module
# class
VIM_FILES = $(addprefix $(BUILD)/, $(addsuffix .vim, $(VIM_NAMES)))
TEXI_NAMES := \
corelib \
coresyn \
macro \
object \
modgauche \
modutil \
modr7rs \
modsrfi
.PHONY: build clean lint
build: syntax/gauche.vim ftplugin/gauche.vim
clean:
rm -rf _build
lint:
@vint **/*.vim
syntax/gauche.vim: $(VIM_FILES)
./build.scm syntax $@ $^
ftplugin/gauche.vim: $(BUILD)/atdef.tsv
./build.scm ftplugin $@ $<
$(BUILD)/macro.vim: $(BUILD)/atdef.tsv
./build.scm macro $< > $@
$(BUILD)/specialform.vim: $(BUILD)/atdef.tsv
./build.scm specialform $< > $@
$(BUILD)/qualifier.vim: $(BUILD)/atdef.tsv
./build.scm qualifier $< > $@
$(BUILD)/function.vim: $(BUILD)/atdef.tsv
./build.scm function $< > $@
$(BUILD)/parameter.vim: $(BUILD)/atdef.tsv
./build.scm parameter $< > $@
$(BUILD)/variable.vim: $(BUILD)/atdef.tsv
./build.scm variable $< > $@
$(BUILD)/constant.vim: $(BUILD)/atdef.tsv
./build.scm constant $< > $@
$(BUILD)/cise.vim: $(BUILD)/atdef.tsv
./build.sh cise $< > $@
$(BUILD)/module.vim: $(BUILD)/atdef.tsv
./build.scm module $< > $@
$(BUILD)/class.vim: $(BUILD)/atdef.tsv
./build.scm class $< > $@
$(BUILD)/atdef.tsv:
mkdir -p $(BUILD)
./build.scm tsv $(TEXI_NAMES) > $@