FILES = bashrc vimrc zshrc emacs.el gitconfig screenrc commonshrc \ gnomerc gvimrc muttrc FILES2 = msmtprc .PHONY: all install clean check all: $(FILES) 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/ clean: check: $(FILES) for i in $(FILES); do diff -u ~/.$$i $$i; done %: %.m4 m4 $< >$@