--- /dev/null
+DOTFILES := $(shell pwd)
+
+all: ~/.aliases ~/.bash_login ~/.ssh/ssh_config ~/.vimrc ~/.zlogin
+~/.aliases: $(DOTFILES)/aliases
+ ln -fs $^ $@
+~/.bash_login: $(DOTFILES)/bash_login
+ ln -fs $^ $@
+~/.ssh/ssh_config: $(DOTFILES)/ssh_config
+ ln -fs $^ $@
+~/.vimrc: $(DOTFILES)/vimrc
+ ln -fs $^ $@
+~/.zlogin: $(DOTFILES)/zsh_login
+ ln -fs $^ $@
+++ /dev/null
-#!/bin/bash
-
-ln -hfs $PWD/aliases ~/.aliases
-ln -hfs $PWD/bash_login ~/.bash_login
-ln -hfs $PWD/ssh_config ~/.ssh/config
-ln -hfs $PWD/vimrc ~/.vimrc
-ln -hfs $PWD/zsh_login ~/.zlogin