aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom van der Lee <t0m.vd.l33@gmail.com>2014-09-28 01:00:07 +0200
committerGravatar Tom van der Lee <t0m.vd.l33@gmail.com>2014-09-28 01:00:07 +0200
commitf14a1dac82355eaeb0f252354dcc04dc50b8e95e (patch)
treeee8e034fcd8ee5d160c046633d4b8b1710c2e793
parent0433b1818098b94917e227831dc64fe0b682252d (diff)
downloaddotfiles-f14a1dac82355eaeb0f252354dcc04dc50b8e95e.tar.gz
dotfiles-f14a1dac82355eaeb0f252354dcc04dc50b8e95e.tar.bz2
dotfiles-f14a1dac82355eaeb0f252354dcc04dc50b8e95e.zip
Changed makefile to make use of symbolic links
-rw-r--r--Makefile49
1 files changed, 18 insertions, 31 deletions
diff --git a/Makefile b/Makefile
index 0e0dd70..1f21a25 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,11 @@
1NUMIX = .local/share/themes/numix-no-title 1PWD=$(shell pwd)
2
3THEMES_DIR = .local/share/themes
4CONFIG_DIR = .config
5NUMIX = numix-no-title
2BASHRC = .bashrc 6BASHRC = .bashrc
3VIMRC = .vimrc 7VIMRC = .vimrc
4HERBSTLUFT = .config/herbstluftwm 8HERBSTLUFT = herbstluftwm
5XRESOURCES = .Xresources 9XRESOURCES = .Xresources
6 10
7 11
@@ -9,42 +13,25 @@ install: all
9 13
10all: bash vim xresources numix-no-title herbstluftwm 14all: bash vim xresources numix-no-title herbstluftwm
11 15
12numix-no-title: 16numix-no-title:
13 #create wm theme dir if not exist 17 ln -sf $(PWD)/$(THEMES_DIR)/$(NUMIX) ~/$(THEMES_DIR)
14 mkdir -p ~/$(NUMIX)
15
16 #remove content if existing
17 -rm -rf ~/$(NUMIX)/*
18
19 #copy new contents in
20 cp -rf $(NUMIX)/* ~/$(NUMIX)/
21 18
22herbstluftwm: 19herbstluftwm:
23 #create herbstluftwm if not exist 20 ln -sf $(PWD)/$(CONFIG_DIR)/$(HERBSTLUFT) ~/$(CONFIG_DIR)
24 mkdir -p ~/$(HERBSTLUFT)
25
26 #remove content if existing
27 -rm -rf ~/$(HERBSTLUFT)/*
28
29 #copy new contents in
30 cp -rf $(HERBSTLUFT)/* ~/$(HERBSTLUFT)/
31 21
32bash: 22bash:
33 #copy bashrc to home 23 ln -sf $(PWD)/$(BASHRC) ~
34 cp -f $(BASHRC) ~
35 24
36vim: 25vim:
37 #copy vimrc to home 26 ln -sf $(PWD)/$(VIMRC) ~
38 cp -f $(VIMRC) ~
39 27
40xresources: 28xresources:
41 #copy Xresources to home 29 ln -sf $(PWD)/$(XRESOURCES) ~
42 cp -f $(XRESOURCES) ~
43 30
44uninstall: 31uninstall:
45 #remove all 32 #remove all
46 -rm -rf ~/$(WM-THEME-DIR) 33 -rm ~/$(THEMES_DIR)/$(NUMIX)
47 -rm -rf ~/$(HERBSTLUFT) 34 -rm ~/$(CONFIG_DIR)/$(HERBSTLUFT)
48 -rm -f ~/$(BASHRC) 35 -rm ~/$(BASHRC)
49 -rm -f ~/$(VIMRC) 36 -rm ~/$(VIMRC)
50 -rm -f ~/$(XRESOURCES) 37 -rm ~/$(XRESOURCES)