]> git.donarmstrong.com Git - lilypond.git/blobdiff - vim/GNUmakefile
* buildscripts/lilypond.words.py: remove.
[lilypond.git] / vim / GNUmakefile
index b1663ef4c10c2bf067e562e7202c4e51feb5286f..189d61e4b4a5baaf5f85d7d72b52b3d8596b2bbd 100644 (file)
@@ -1,6 +1,41 @@
 depth = ..
 
-# elispdir defined in config.make
+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 
 
-EXTRA_DIST_FILES = $(wildcard *.vim)
+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
+
+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
+
+$(LILYPOND_WORDS): 
+       cd $(topdir) && $(PYTHON) buildscripts/lilypond-words.py --words --vim --dir=$(builddir)/vim/$(outconfbase)
+
+all: $(LILYPOND_WORDS)
+