etc/Makefile
2013-12-29 18:32:58 +01:00

35 lines
714 B
Makefile

FILES = bashrc vimrc zshrc emacs.el gitconfig screenrc commonshrc \
gnomerc gvimrc muttrc
FILES2 = msmtprc
.PHONY: all install clean check
all: $(FILES)
ifeq ($(OS),Windows_NT)
install:
mkdir -p $(HOME)\vimfiles\autoload
cp gitconfig $(HOME)\.gitconfig
cp vimrc $(HOME)\_vimrc
cp gvimrc $(HOME)\_gvimrc
cp vim-pathogen/autoload/pathogen.vim $(HOME)\vimfiles\autoload
else
install: $(FILES)
mkdir -p ~/.ssh ~/.vim/autoload
for i in $(FILES); do install -m0644 $$i ~/.$$i; done
for i in $(FILES2); do install -m0600 $$i ~/.$$i; done
install -m0644 vim-pathogen/autoload/pathogen.vim ~/.vim/autoload/
check: $(FILES)
for i in $(FILES); do diff -u ~/.$$i $$i; done
endif
clean:
%: %.m4
m4 $< >$@