X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=vim%2FGNUmakefile;h=b05ec0e3c7c42c52e3de3574d5ec6754badd4ed4;hb=66a5682bede438bf6663f04fec05e1c1e864e4b0;hp=189d61e4b4a5baaf5f85d7d72b52b3d8596b2bbd;hpb=d59c519d8248e9c337f9020e98242e2afbfcb3e8;p=lilypond.git diff --git a/vim/GNUmakefile b/vim/GNUmakefile index 189d61e4b4..b05ec0e3c7 100644 --- a/vim/GNUmakefile +++ b/vim/GNUmakefile @@ -4,38 +4,34 @@ INSTALLATION_OUT_DIR=$(vimdir)/syntax INSTALLATION_OUT_FILES=$(LILYPOND_WORDS) # $(outdir)/lilypond-words $(outdir)/lilypond-words.el -STEPMAKE_TEMPLATES=install-out - -# vimdir defined in config.make -include $(depth)/make/stepmake.make - -local-install: - mkdir -p $(vimdir)/compiler - $(INSTALL) lilypond-compiler.vim $(vimdir)/compiler/lilypond.vim - - mkdir -p $(vimdir)/ftdetect - $(INSTALL) lilypond-ftdetect.vim $(vimdir)/ftdetect/lilypond.vim - - mkdir -p $(vimdir)/ftplugin - $(INSTALL) lilypond-ftplugin.vim $(vimdir)/ftplugin/lilypond.vim - - mkdir -p $(vimdir)/indent - $(INSTALL) lilypond-indent.vim $(vimdir)/indent/lilypond.vim - - mkdir -p $(vimdir)/syntax - $(INSTALL) lilypond-syntax.vim $(vimdir)/syntax/lilypond.vim - -EXTRA_DIST_FILES=filetype.vim +EXTRA_DIST_FILES=$(call src-wildcard,*.vim) vimrc LILYPOND_WORDS = $(outdir)/lilypond-words $(outdir)/lilypond-words.vim LILYPOND_WORDS_DEPENDS =\ - $(topdir)/lily/my-lily-lexer.cc \ + $(top-src-dir)/lily/lily-lexer.cc \ $(buildscript-dir)/lilypond-words.py \ - $(topdir)/scm/new-markup.scm \ - $(topdir)/ly/engraver-init.ly + $(top-src-dir)/scm/markup.scm \ + $(top-src-dir)/ly/engraver-init.ly + +STEPMAKE_TEMPLATES=install-out -$(LILYPOND_WORDS): - cd $(topdir) && $(PYTHON) buildscripts/lilypond-words.py --words --vim --dir=$(builddir)/vim/$(outconfbase) +# 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)