]> git.donarmstrong.com Git - lilypond.git/blob - vim/GNUmakefile
ae98124e8d197536163ded9bb9d58e400e1d78f3
[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         rmdir -p $(vimdir)/compiler 
31
32         rm $(vimdir)/ftdetect/lilypond.vim
33         rmdir -p $(vimdir)/ftdetect 
34
35         rm $(vimdir)/ftplugin/lilypond.vim
36         rmdir -p $(vimdir)/ftplugin 
37
38         rm $(vimdir)/indent/lilypond.vim
39         rmdir -p $(vimdir)/indent 
40
41         rm $(vimdir)/syntax/lilypond.vim
42         rmdir -p $(vimdir)/syntax
43
44 EXTRA_DIST_FILES=filetype.vim vimrc
45
46 LILYPOND_WORDS = $(outdir)/lilypond-words $(outdir)/lilypond-words.vim
47 LILYPOND_WORDS_DEPENDS =\
48   $(topdir)/lily/my-lily-lexer.cc \
49   $(buildscript-dir)/lilypond-words.py \
50   $(topdir)/scm/new-markup.scm \
51   $(topdir)/ly/engraver-init.ly
52
53 $(LILYPOND_WORDS): 
54         cd $(topdir) && $(PYTHON) buildscripts/lilypond-words.py --words --vim --dir=$(builddir)/vim/$(outconfbase)
55
56 all: $(LILYPOND_WORDS)
57