X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=sidebyside;f=vim%2FGNUmakefile;h=b05ec0e3c7c42c52e3de3574d5ec6754badd4ed4;hb=363cbd5e19fdebf6d4ba21f2a876f320c5baa192;hp=b1663ef4c10c2bf067e562e7202c4e51feb5286f;hpb=5f6754d514722101f518ab8988acce9002c324a4;p=lilypond.git diff --git a/vim/GNUmakefile b/vim/GNUmakefile index b1663ef4c1..b05ec0e3c7 100644 --- a/vim/GNUmakefile +++ b/vim/GNUmakefile @@ -1,6 +1,37 @@ depth = .. -# elispdir defined in config.make -include $(depth)/make/stepmake.make +INSTALLATION_OUT_DIR=$(vimdir)/syntax +INSTALLATION_OUT_FILES=$(LILYPOND_WORDS) +# $(outdir)/lilypond-words $(outdir)/lilypond-words.el + +EXTRA_DIST_FILES=$(call src-wildcard,*.vim) vimrc + +LILYPOND_WORDS = $(outdir)/lilypond-words $(outdir)/lilypond-words.vim +LILYPOND_WORDS_DEPENDS =\ + $(top-src-dir)/lily/lily-lexer.cc \ + $(buildscript-dir)/lilypond-words.py \ + $(top-src-dir)/scm/markup.scm \ + $(top-src-dir)/ly/engraver-init.ly + +STEPMAKE_TEMPLATES=install-out + +# vimdir defined in config.make +include $(depth)/make/stepmake.make + +local-install: + for a in compiler ftdetect ftplugin indent syntax; do \ + $(INSTALL) -d $(DESTDIR)$(vimdir)/$$a \ + && $(INSTALL) -m 644 $(src-dir)/lilypond-$$a.vim $(DESTDIR)$(vimdir)/$$a/lilypond.vim ; \ + done + +local-uninstall: + for a in compiler ftdetect ftplugin indent syntax; do \ + rm $(DESTDIR)$(vimdir)/$$a/lilypond.vim ; \ + -rmdir -p $(DESTDIR)$(vimdir)/$$a ; \ + done + +$(LILYPOND_WORDS): + cd $(top-src-dir) && $(PYTHON) buildscripts/lilypond-words.py --words --vim --dir=$(top-build-dir)/vim/$(outconfbase) + +all: $(LILYPOND_WORDS) -EXTRA_DIST_FILES = $(wildcard *.vim)