X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=vim%2FGNUmakefile;h=ad032e42fe75d5542147a7dd6e756e9557ace988;hb=29d4a0cf02e2890ded85acf48865f64541d7c7d4;hp=b645e678c3800f11e9b6237485c6e9a3a6c600bd;hpb=cb85d1c77149d3f3cc12dcd3829f85195efe14b7;p=lilypond.git diff --git a/vim/GNUmakefile b/vim/GNUmakefile index b645e678c3..ad032e42fe 100644 --- a/vim/GNUmakefile +++ b/vim/GNUmakefile @@ -1,22 +1,41 @@ depth = .. +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 \ + $(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 +include $(depth)/make/stepmake.make local-install: - mkdir -p $(vimdir)/compiler - $(INSTALL) lilypond-compiler.vim $(vimdir)/compiler/lilypond.vim + 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 - mkdir -p $(vimdir)/ftdetect - $(INSTALL) lilypond-ftdetect.vim $(vimdir)/ftdetect/lilypond.vim +local-uninstall: + for a in compiler ftdetect ftplugin indent syntax; do \ + rm $(DESTDIR)$(vimdir)/$$a/lilypond.vim ; \ + rmdir $(DESTDIR)$(vimdir)/$$a; \ + done + -rmdir -p $(DESTDIR)$(vimdir) - mkdir -p $(vimdir)/ftplugin - $(INSTALL) lilypond-ftplugin.vim $(vimdir)/ftplugin/lilypond.vim +$(buildscript-dir)/lilypond-words: + make -C $(depth)/scripts/build - mkdir -p $(vimdir)/indent - $(INSTALL) lilypond-indent.vim $(vimdir)/indent/lilypond.vim +$(LILYPOND_WORDS): + cd $(top-src-dir) && $(buildscript-dir)/lilypond-words --words --vim --dir=$(top-build-dir)/vim/$(outconfbase) - mkdir -p $(vimdir)/syntax - $(INSTALL) lilypond-syntax.vim $(vimdir)/syntax/lilypond.vim +all: $(LILYPOND_WORDS) -EXTRA_DIST_FILES=filetype.vim