]> git.donarmstrong.com Git - lilypond.git/blobdiff - vim/GNUmakefile
* stepmake/stepmake/*:
[lilypond.git] / vim / GNUmakefile
index e5f12f14f1d14f4b8ab4198997408be0bc0e54f3..565b7c80e640e1e40723a847e487c416aa9471ed 100644 (file)
@@ -8,10 +8,10 @@ EXTRA_DIST_FILES=$(wildcard *.vim) vimrc
 
 LILYPOND_WORDS = $(outdir)/lilypond-words $(outdir)/lilypond-words.vim
 LILYPOND_WORDS_DEPENDS =\
-  $(topdir)/lily/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
 
@@ -19,39 +19,39 @@ STEPMAKE_TEMPLATES=install-out
 include $(depth)/make/stepmake.make 
 
 local-install:
-       mkdir -p $(vimdir)/compiler
-       $(INSTALL) -m 644 lilypond-compiler.vim $(vimdir)/compiler/lilypond.vim
+       -$(INSTALL) -d $(DESTDIR)$(vimdir)/compiler
+       $(INSTALL) -m 644 lilypond-compiler.vim $(DESTDIR)$(vimdir)/compiler/lilypond.vim
 
-       mkdir -p $(vimdir)/ftdetect
-       $(INSTALL) -m 644 lilypond-ftdetect.vim $(vimdir)/ftdetect/lilypond.vim
+       -$(INSTALL) -d $(DESTDIR)$(vimdir)/ftdetect
+       $(INSTALL) -m 644 lilypond-ftdetect.vim $(DESTDIR)$(vimdir)/ftdetect/lilypond.vim
 
-       mkdir -p $(vimdir)/ftplugin
-       $(INSTALL) -m 644 lilypond-ftplugin.vim $(vimdir)/ftplugin/lilypond.vim
+       -$(INSTALL) -d $(DESTDIR)$(vimdir)/ftplugin
+       $(INSTALL) -m 644 lilypond-ftplugin.vim $(DESTDIR)$(vimdir)/ftplugin/lilypond.vim
 
-       mkdir -p $(vimdir)/indent
-       $(INSTALL) -m 644 lilypond-indent.vim $(vimdir)/indent/lilypond.vim
+       -$(INSTALL) -d $(DESTDIR)$(vimdir)/indent
+       $(INSTALL) -m 644 lilypond-indent.vim $(DESTDIR)$(vimdir)/indent/lilypond.vim
 
-       mkdir -p $(vimdir)/syntax
-       $(INSTALL) -m 644 lilypond-syntax.vim $(vimdir)/syntax/lilypond.vim
+       -$(INSTALL) -d $(DESTDIR)$(vimdir)/syntax
+       $(INSTALL) -m 644 lilypond-syntax.vim $(DESTDIR)$(vimdir)/syntax/lilypond.vim
 
 local-uninstall:
-       rm $(vimdir)/compiler/lilypond.vim
-       -rmdir -p $(vimdir)/compiler 
+       rm $(DESTDIR)$(vimdir)/compiler/lilypond.vim
+       -rmdir -p $(DESTDIR)$(vimdir)/compiler 
 
-       rm $(vimdir)/ftdetect/lilypond.vim
-       -rmdir -p $(vimdir)/ftdetect 
+       rm $(DESTDIR)$(vimdir)/ftdetect/lilypond.vim
+       -rmdir -p $(DESTDIR)$(vimdir)/ftdetect 
 
-       rm $(vimdir)/ftplugin/lilypond.vim
-       -rmdir -p $(vimdir)/ftplugin 
+       rm $(DESTDIR)$(vimdir)/ftplugin/lilypond.vim
+       -rmdir -p $(DESTDIR)$(vimdir)/ftplugin 
 
-       rm $(vimdir)/indent/lilypond.vim
-       -rmdir -p $(vimdir)/indent 
+       rm $(DESTDIR)$(vimdir)/indent/lilypond.vim
+       -rmdir -p $(DESTDIR)$(vimdir)/indent 
 
-       rm $(vimdir)/syntax/lilypond.vim
-       -rmdir -p $(vimdir)/syntax
+       rm $(DESTDIR)$(vimdir)/syntax/lilypond.vim
+       -rmdir -p $(DESTDIR)$(vimdir)/syntax
 
 $(LILYPOND_WORDS): 
-       cd $(topdir) && $(PYTHON) buildscripts/lilypond-words.py --words --vim --dir=$(builddir)/vim/$(outconfbase)
+       cd $(top-src-dir) && $(PYTHON) buildscripts/lilypond-words.py --words --vim --dir=$(top-build-dir)/vim/$(outconfbase)
 
 all: $(LILYPOND_WORDS)