- 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
-
- rm $(vimdir)/syntax/lilypond.vim
- -rmdir -p $(vimdir)/syntax
-
-$(LILYPOND_WORDS):
- cd $(topdir) && $(PYTHON) buildscripts/lilypond-words.py --words --vim --dir=$(builddir)/vim/$(outconfbase)
+ for a in compiler ftdetect ftplugin indent syntax; do \
+ rm $(DESTDIR)$(vimdir)/$$a/lilypond.vim ; \
+ rmdir $(DESTDIR)$(vimdir)/$$a; \
+ done
+ -rmdir -p $(DESTDIR)$(vimdir)
+
+$(LILYPOND_WORDS):
+ cd $(top-src-dir) && $(PYTHON) buildscripts/lilypond-words.py --words --vim --dir=$(top-build-dir)/vim/$(outconfbase)