]> git.donarmstrong.com Git - lilypond.git/blob - vim/GNUmakefile
Fixes issue 1881: cyclic dependency in Stem #'Y-extent.
[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=$(call src-wildcard,*.vim) vimrc
8
9 LILYPOND_WORDS = $(outdir)/lilypond-words $(outdir)/lilypond-words.vim
10 LILYPOND_WORDS_DEPENDS =\
11   $(top-src-dir)/lily/lily-lexer.cc \
12   $(buildscript-dir)/lilypond-words \
13   $(top-src-dir)/scm/markup.scm \
14   $(top-src-dir)/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         for a in compiler ftdetect ftplugin indent syntax; do \
23                 $(INSTALL) -d $(DESTDIR)$(vimdir)/$$a \
24                 && $(INSTALL) -m 644 $(src-dir)/lilypond-$$a.vim $(DESTDIR)$(vimdir)/$$a/lilypond.vim ; \
25         done
26
27 local-uninstall:
28         for a in compiler ftdetect ftplugin indent syntax; do \
29                 rm $(DESTDIR)$(vimdir)/$$a/lilypond.vim ; \
30                 rmdir $(DESTDIR)$(vimdir)/$$a; \
31         done
32         -rmdir -p $(DESTDIR)$(vimdir)
33
34 $(buildscript-dir)/lilypond-words:
35         make -C $(depth)/scripts/build
36
37 $(LILYPOND_WORDS):
38         cd $(top-src-dir) && $(buildscript-dir)/lilypond-words --words --vim --dir=$(top-build-dir)/vim/$(outconfbase)
39
40 all: $(LILYPOND_WORDS)
41