]> git.donarmstrong.com Git - lilypond.git/blob - vim/GNUmakefile
e5f12f14f1d14f4b8ab4198997408be0bc0e54f3
[lilypond.git] / vim / GNUmakefile
1 depth = ..
2
3 INSTALLATION_OUT_DIR=$(vimdir)/syntax
4 INSTALLATION_OUT_FILES=$(LILYPOND_WORDS)
5 # $(outdir)/lilypond-words $(outdir)/lilypond-words.el
6
7 EXTRA_DIST_FILES=$(wildcard *.vim) vimrc
8
9 LILYPOND_WORDS = $(outdir)/lilypond-words $(outdir)/lilypond-words.vim
10 LILYPOND_WORDS_DEPENDS =\
11   $(topdir)/lily/lily-lexer.cc \
12   $(buildscript-dir)/lilypond-words.py \
13   $(topdir)/scm/new-markup.scm \
14   $(topdir)/ly/engraver-init.ly
15
16 STEPMAKE_TEMPLATES=install-out
17
18 # vimdir defined in config.make
19 include $(depth)/make/stepmake.make 
20
21 local-install:
22         mkdir -p $(vimdir)/compiler
23         $(INSTALL) -m 644 lilypond-compiler.vim $(vimdir)/compiler/lilypond.vim
24
25         mkdir -p $(vimdir)/ftdetect
26         $(INSTALL) -m 644 lilypond-ftdetect.vim $(vimdir)/ftdetect/lilypond.vim
27
28         mkdir -p $(vimdir)/ftplugin
29         $(INSTALL) -m 644 lilypond-ftplugin.vim $(vimdir)/ftplugin/lilypond.vim
30
31         mkdir -p $(vimdir)/indent
32         $(INSTALL) -m 644 lilypond-indent.vim $(vimdir)/indent/lilypond.vim
33
34         mkdir -p $(vimdir)/syntax
35         $(INSTALL) -m 644 lilypond-syntax.vim $(vimdir)/syntax/lilypond.vim
36
37 local-uninstall:
38         rm $(vimdir)/compiler/lilypond.vim
39         -rmdir -p $(vimdir)/compiler 
40
41         rm $(vimdir)/ftdetect/lilypond.vim
42         -rmdir -p $(vimdir)/ftdetect 
43
44         rm $(vimdir)/ftplugin/lilypond.vim
45         -rmdir -p $(vimdir)/ftplugin 
46
47         rm $(vimdir)/indent/lilypond.vim
48         -rmdir -p $(vimdir)/indent 
49
50         rm $(vimdir)/syntax/lilypond.vim
51         -rmdir -p $(vimdir)/syntax
52
53 $(LILYPOND_WORDS): 
54         cd $(topdir) && $(PYTHON) buildscripts/lilypond-words.py --words --vim --dir=$(builddir)/vim/$(outconfbase)
55
56 all: $(LILYPOND_WORDS)
57