]> 105106.c2e0p.group Git - dotfiles.git/commitdiff
Added Makefile for installation; removed install.sh
authorJer Noble <[email protected]>
Wed, 25 Sep 2013 21:49:39 +0000 (14:49 -0700)
committerJer Noble <[email protected]>
Wed, 25 Sep 2013 21:49:39 +0000 (14:49 -0700)
Makefile [new file with mode: 0644]
install.sh [deleted file]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..78ab1dc
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,13 @@
+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 $^ $@
diff --git a/install.sh b/install.sh
deleted file mode 100755 (executable)
index 1ee6e55..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/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