]> git.donarmstrong.com Git - lilypond.git/blobdiff - vim/GNUmakefile
*** empty log message ***
[lilypond.git] / vim / GNUmakefile
index 230194fb6103c04fa0fc68aaeee1aed0d7707dd8..e5f12f14f1d14f4b8ab4198997408be0bc0e54f3 100644 (file)
@@ -4,6 +4,15 @@ INSTALLATION_OUT_DIR=$(vimdir)/syntax
 INSTALLATION_OUT_FILES=$(LILYPOND_WORDS)
 # $(outdir)/lilypond-words $(outdir)/lilypond-words.el
 
+EXTRA_DIST_FILES=$(wildcard *.vim) vimrc
+
+LILYPOND_WORDS = $(outdir)/lilypond-words $(outdir)/lilypond-words.vim
+LILYPOND_WORDS_DEPENDS =\
+  $(topdir)/lily/lily-lexer.cc \
+  $(buildscript-dir)/lilypond-words.py \
+  $(topdir)/scm/new-markup.scm \
+  $(topdir)/ly/engraver-init.ly
+
 STEPMAKE_TEMPLATES=install-out
 
 # vimdir defined in config.make
@@ -11,35 +20,35 @@ include $(depth)/make/stepmake.make
 
 local-install:
        mkdir -p $(vimdir)/compiler
-       $(INSTALL) lilypond-compiler.vim $(vimdir)/compiler/lilypond.vim
+       $(INSTALL) -m 644 lilypond-compiler.vim $(vimdir)/compiler/lilypond.vim
 
        mkdir -p $(vimdir)/ftdetect
-       $(INSTALL) lilypond-ftdetect.vim $(vimdir)/ftdetect/lilypond.vim
+       $(INSTALL) -m 644 lilypond-ftdetect.vim $(vimdir)/ftdetect/lilypond.vim
 
        mkdir -p $(vimdir)/ftplugin
-       $(INSTALL) lilypond-ftplugin.vim $(vimdir)/ftplugin/lilypond.vim
+       $(INSTALL) -m 644 lilypond-ftplugin.vim $(vimdir)/ftplugin/lilypond.vim
 
        mkdir -p $(vimdir)/indent
-       $(INSTALL) lilypond-indent.vim $(vimdir)/indent/lilypond.vim
+       $(INSTALL) -m 644 lilypond-indent.vim $(vimdir)/indent/lilypond.vim
 
        mkdir -p $(vimdir)/syntax
-       $(INSTALL) lilypond-syntax.vim $(vimdir)/syntax/lilypond.vim
+       $(INSTALL) -m 644 lilypond-syntax.vim $(vimdir)/syntax/lilypond.vim
 
 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
-       rm $(vimdir)/indent/lilypond.vim
-       rm $(vimdir)/syntax/lilypond.vim
+       -rmdir -p $(vimdir)/ftplugin 
 
-EXTRA_DIST_FILES=filetype.vim
+       rm $(vimdir)/indent/lilypond.vim
+       -rmdir -p $(vimdir)/indent 
 
-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
+       rm $(vimdir)/syntax/lilypond.vim
+       -rmdir -p $(vimdir)/syntax
 
 $(LILYPOND_WORDS): 
        cd $(topdir) && $(PYTHON) buildscripts/lilypond-words.py --words --vim --dir=$(builddir)/vim/$(outconfbase)