X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=vim%2FGNUmakefile;h=ad032e42fe75d5542147a7dd6e756e9557ace988;hb=6a7c7d03d6fb1e826bf9db87dceeb41fe2782849;hp=81772b86f40d1a935aafd95d29fec61ec98a1b86;hpb=6dfd27ec6f757c11a5e57354dd928ca936845556;p=lilypond.git diff --git a/vim/GNUmakefile b/vim/GNUmakefile index 81772b86f4..ad032e42fe 100644 --- a/vim/GNUmakefile +++ b/vim/GNUmakefile @@ -4,54 +4,38 @@ INSTALLATION_OUT_DIR=$(vimdir)/syntax INSTALLATION_OUT_FILES=$(LILYPOND_WORDS) # $(outdir)/lilypond-words $(outdir)/lilypond-words.el -EXTRA_DIST_FILES=$(wildcard *.vim) vimrc +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 \ - $(buildscript-dir)/lilypond-words.py \ - $(topdir)/scm/new-markup.scm \ - $(topdir)/ly/engraver-init.ly + $(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) -m 644 lilypond-compiler.vim $(vimdir)/compiler/lilypond.vim - - mkdir -p $(vimdir)/ftdetect - $(INSTALL) -m 644 lilypond-ftdetect.vim $(vimdir)/ftdetect/lilypond.vim - - mkdir -p $(vimdir)/ftplugin - $(INSTALL) -m 644 lilypond-ftplugin.vim $(vimdir)/ftplugin/lilypond.vim - - mkdir -p $(vimdir)/indent - $(INSTALL) -m 644 lilypond-indent.vim $(vimdir)/indent/lilypond.vim - - mkdir -p $(vimdir)/syntax - $(INSTALL) -m 644 lilypond-syntax.vim $(vimdir)/syntax/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 local-uninstall: - rm $(vimdir)/compiler/lilypond.vim - -rmdir -p $(vimdir)/compiler - - rm $(vimdir)/ftdetect/lilypond.vim - -rmdir -p $(vimdir)/ftdetect - - rm $(vimdir)/ftplugin/lilypond.vim - -rmdir -p $(vimdir)/ftplugin - - rm $(vimdir)/indent/lilypond.vim - -rmdir -p $(vimdir)/indent + for a in compiler ftdetect ftplugin indent syntax; do \ + rm $(DESTDIR)$(vimdir)/$$a/lilypond.vim ; \ + rmdir $(DESTDIR)$(vimdir)/$$a; \ + done + -rmdir -p $(DESTDIR)$(vimdir) - rm $(vimdir)/syntax/lilypond.vim - -rmdir -p $(vimdir)/syntax +$(buildscript-dir)/lilypond-words: + make -C $(depth)/scripts/build -$(LILYPOND_WORDS): - cd $(topdir) && $(PYTHON) buildscripts/lilypond-words.py --words --vim --dir=$(builddir)/vim/$(outconfbase) +$(LILYPOND_WORDS): + cd $(top-src-dir) && $(buildscript-dir)/lilypond-words --words --vim --dir=$(top-build-dir)/vim/$(outconfbase) all: $(LILYPOND_WORDS)