forked from patoline/patoline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGNUmakefile
39 lines (31 loc) · 788 Bytes
/
GNUmakefile
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
.PHONY: all
all: $(GENERATED_FILES)
@dune build
.PHONY: doc
doc: $(GENERATED_FILES)
@dune build @doc
.PHONY: clean
clean:
@dune clean
.PHONY: distclean
distclean: clean
@find . -name "*~" -exec rm {} \;
.PHONY: install
install: all
@dune install
.PHONY: uninstall
uninstall: all
@dune uninstall
VIMDIR = $(HOME)/.vim
# Install for the vim mode (in the user's directory).
.PHONY: install_vim
install_vim: $(wildcard editors/vim/*/*.vim)
ifeq ($(wildcard $(VIMDIR)/.),)
@printf "\e[36mWill not install vim mode.\e[39m\n"
else
install -d $(VIMDIR)/syntax
install -d $(VIMDIR)/ftdetect
install -m 644 editors/vim/syntax/patoline.vim $(VIMDIR)/syntax
install -m 644 editors/vim/ftdetect/patoline.vim $(VIMDIR)/ftdetect
@printf "\e[36mVim mode installed.\e[39m\n"
endif