aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Tom van der Lee <t0m.vd.l33@gmail.com>2014-10-25 22:26:54 +0200
committerGravatar Tom van der Lee <t0m.vd.l33@gmail.com>2014-10-25 22:26:54 +0200
commit3e94a3e724c36267fa2e4039e3759473c59e8510 (patch)
tree379d0598c0d26d3b0c746604d80bb9e803371fb0 /Makefile
parent8ecace69cb3b35ac6b72859ebf0be70d11d2d71e (diff)
downloaddotfiles-3e94a3e724c36267fa2e4039e3759473c59e8510.tar.gz
dotfiles-3e94a3e724c36267fa2e4039e3759473c59e8510.tar.bz2
dotfiles-3e94a3e724c36267fa2e4039e3759473c59e8510.zip
Restructured dotfile repo to take advantage of GNU Stow
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile63
1 files changed, 7 insertions, 56 deletions
diff --git a/Makefile b/Makefile
index 8d2e9fb..c383450 100644
--- a/Makefile
+++ b/Makefile
@@ -1,59 +1,10 @@
1PWD=$(shell pwd) 1ALL=$(shell ls -p | grep "/")
2HOME=$(shell echo ~)
2 3
3THEMES_DIR = .local/share/themes 4install:
4CONFIG_DIR = .config 5 @echo "Installing dotfiles to $(HOME)"
5GTK3_DIR = gtk-3.0 6 @stow -t $(HOME) -v $(ALL)
6
7BASHRC = .bashrc
8COMPTON = .compton
9GTKCSS = gtk.css
10HERBSTLUFT = herbstluftwm
11LIQUIDPROMPT = .liquidpromptrc
12LP_PS1 = .lp_ps1
13NUMIX = numix-no-title
14VIMRC = .vimrc
15XRESOURCES = .Xresources
16
17install: all
18
19all: bash compton gtk3fix herbstluftwm liquidprompt numix-no-title vim xresources
20
21bash:
22 ln -sf $(PWD)/$(BASHRC) ~
23
24compton:
25 ln -sf $(PWD)/$(COMPTON) ~
26
27gtk3fix:
28 mkdir -p ~/$(CONFIG_DIR)/$(GTK3_DIR)
29 ln -sf $(PWD)/$(CONFIG_DIR)/$(GTK3_DIR)/$(GTKCSS) ~/$(CONFIG_DIR)/$(GTK3_DIR)
30
31herbstluftwm:
32 mkdir -p ~/$(CONFIG_DIR)
33 ln -sf $(PWD)/$(CONFIG_DIR)/$(HERBSTLUFT) ~/$(CONFIG_DIR)/
34
35liquidprompt:
36 ln -sf $(PWD)/$(LIQUIDPROMPT) ~
37 ln -sf $(PWD)/$(LP_PS1) ~
38
39numix-no-title:
40 mkdir -p ~/$(THEMES_DIR)
41 ln -sf $(PWD)/$(THEMES_DIR)/$(NUMIX) ~/$(THEMES_DIR)/
42
43vim:
44 ln -sf $(PWD)/$(VIMRC) ~
45
46xresources:
47 ln -sf $(PWD)/$(XRESOURCES) ~
48 7
49uninstall: 8uninstall:
50 #remove all 9 @echo "Uninstalling dotfiles"
51 -rm ~/$(BASHRC) 10 @stow -t $(HOME) -Dv $(ALL)
52 -rm ~/$(COMPTON)
53 -rm ~/$(CONFIG_DIR)/$(HERBSTLUFT)
54 -rm ~/$(CONFIG_DIR)/$(GTK3_DIR)/$(GTKCSS)
55 -rm ~/$(LIQUIDPROMPT)
56 -rm ~/$(LP_PS1)
57 -rm ~/$(THEMES_DIR)/$(NUMIX)
58 -rm ~/$(VIMRC)
59 -rm ~/$(XRESOURCES)