Changeset 102169 for contrib/mpvim


Ignore:
Timestamp:
Jan 29, 2013, 6:14:21 AM (11 years ago)
Author:
larryv@…
Message:

mpvim: Fix Makefile to correctly support DESTDIR.

Use "make prefix=FOO install" to customize install location.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • contrib/mpvim/Makefile

    r82776 r102169  
    11.PHONY: all install
    22
    3 DESTDIR=~/.vim
     3prefix := ~/.vim
    44
    55all:
     
    77install:
    88        @for dir in compiler ftdetect ftplugin snippets syntax; do \
    9                 mkdir -p $(DESTDIR)/$$dir/ ; \
    10                 cp -rv $$dir/* $(DESTDIR)/$$dir/ ; \
     9                mkdir -p $(DESTDIR)$(prefix)/$$dir/ ; \
     10                cp -rv $$dir/* $(DESTDIR)$(prefix)/$$dir/ ; \
    1111        done
Note: See TracChangeset for help on using the changeset viewer.