Support Makefile under Windows.

This commit is contained in:
Gabriel Ebner 2015-01-03 12:17:43 +01:00
parent ab7db5e074
commit e91fcfe3c8

@ -8,18 +8,24 @@ install: install-conf install-vim-plug
ifeq ($(OS),Windows_NT)
HOME = $(HOMEDRIVE)$(HOMEPATH)
install-conf:
mkdir -p $(HOME)\vimfiles\autoload
cp gitconfig $(HOME)\.gitconfig
cp vimrc $(HOME)\_vimrc
cp gvimrc $(HOME)\_gvimrc
VIM_DIR = $(HOME)/vimfiles
VIM_DIR = $(HOME)\vimfiles
install-vim-plug:
test -d $(VIM_DIR)\autoload || mkdir $(VIM_DIR)\autoload
test -f $(VIM_DIR)/autoload/plug.vim || curl -k -fLo $(VIM_DIR)/autoload/plug.vim \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
else
install-conf: $(FILES)
mkdir -p ~/.ssh ~/.vim/autoload
mkdir -p ~/.ssh
for i in $(FILES); do install -m0644 $$i ~/.$$i; done
for i in $(FILES2); do install -m0600 $$i ~/.$$i; done
@ -28,13 +34,13 @@ check: $(FILES)
VIM_DIR = $(HOME)/.vim
endif
install-vim-plug:
mkdir -p $(VIM_DIR)/autoload
test -f $(VIM_DIR)/autoload/plug.vim || curl -fLo ~/.vim/autoload/plug.vim \
test -f $(VIM_DIR)/autoload/plug.vim || curl -fLo $(VIM_DIR)/autoload/plug.vim \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
endif
clean:
%: %.m4