summaryrefslogtreecommitdiff
path: root/.zsh/Makefile
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2015-09-16 15:38:58 +0100
committerUrbain Vaes <urbain@vaes.uk>2015-09-16 15:38:58 +0100
commitb920816216cb161449dcf03ffe964c667c7b36c2 (patch)
tree8f666cc88277df541e3364fbc45dcd63acd7a45e /.zsh/Makefile
parent63a9e763db248af694edc3755a288f2bfb73c834 (diff)
Split install file
Diffstat (limited to '.zsh/Makefile')
-rw-r--r--.zsh/Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/.zsh/Makefile b/.zsh/Makefile
new file mode 100644
index 0000000..3593740
--- /dev/null
+++ b/.zsh/Makefile
@@ -0,0 +1,13 @@
+HOME=/home/urbain
+TARGETS=$(addprefix $(HOME)/,.zsh .zshrc)
+
+all : $(TARGETS)
+
+$(HOME)/.zshrc :
+ rm -f $@ && ln -s $(PWD)/zshrc $@
+
+$(HOME)/.zsh :
+ rm -f $@ && ln -s $(PWD) $@
+
+clean :
+ rm -f $(TARGETS)