]> git.donarmstrong.com Git - lilypond.git/blob - vim/GNUmakefile
230194fb6103c04fa0fc68aaeee1aed0d7707dd8
[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 STEPMAKE_TEMPLATES=install-out
8
9 # vimdir defined in config.make
10 include $(depth)/make/stepmake.make 
11
12 local-install:
13         mkdir -p $(vimdir)/compiler
14         $(INSTALL) lilypond-compiler.vim $(vimdir)/compiler/lilypond.vim
15
16         mkdir -p $(vimdir)/ftdetect
17         $(INSTALL) lilypond-ftdetect.vim $(vimdir)/ftdetect/lilypond.vim
18
19         mkdir -p $(vimdir)/ftplugin
20         $(INSTALL) lilypond-ftplugin.vim $(vimdir)/ftplugin/lilypond.vim
21
22         mkdir -p $(vimdir)/indent
23         $(INSTALL) lilypond-indent.vim $(vimdir)/indent/lilypond.vim
24
25         mkdir -p $(vimdir)/syntax
26         $(INSTALL) lilypond-syntax.vim $(vimdir)/syntax/lilypond.vim
27
28 local-uninstall:
29         rm $(vimdir)/compiler/lilypond.vim
30         rm $(vimdir)/ftdetect/lilypond.vim
31         rm $(vimdir)/ftplugin/lilypond.vim
32         rm $(vimdir)/indent/lilypond.vim
33         rm $(vimdir)/syntax/lilypond.vim
34
35 EXTRA_DIST_FILES=filetype.vim
36
37 LILYPOND_WORDS = $(outdir)/lilypond-words $(outdir)/lilypond-words.vim
38 LILYPOND_WORDS_DEPENDS =\
39   $(topdir)/lily/my-lily-lexer.cc \
40   $(buildscript-dir)/lilypond-words.py \
41   $(topdir)/scm/new-markup.scm \
42   $(topdir)/ly/engraver-init.ly
43
44 $(LILYPOND_WORDS): 
45         cd $(topdir) && $(PYTHON) buildscripts/lilypond-words.py --words --vim --dir=$(builddir)/vim/$(outconfbase)
46
47 all: $(LILYPOND_WORDS)
48