diff options
| author | 2014-09-28 01:00:07 +0200 | |
|---|---|---|
| committer | 2014-09-28 01:00:07 +0200 | |
| commit | f14a1dac82355eaeb0f252354dcc04dc50b8e95e (patch) | |
| tree | ee8e034fcd8ee5d160c046633d4b8b1710c2e793 /Makefile | |
| parent | 0433b1818098b94917e227831dc64fe0b682252d (diff) | |
| download | dotfiles-f14a1dac82355eaeb0f252354dcc04dc50b8e95e.tar.gz dotfiles-f14a1dac82355eaeb0f252354dcc04dc50b8e95e.tar.bz2 dotfiles-f14a1dac82355eaeb0f252354dcc04dc50b8e95e.zip | |
Changed makefile to make use of symbolic links
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 49 |
1 files changed, 18 insertions, 31 deletions
| @@ -1,7 +1,11 @@ | |||
| 1 | NUMIX = .local/share/themes/numix-no-title | 1 | PWD=$(shell pwd) |
| 2 | |||
| 3 | THEMES_DIR = .local/share/themes | ||
| 4 | CONFIG_DIR = .config | ||
| 5 | NUMIX = numix-no-title | ||
| 2 | BASHRC = .bashrc | 6 | BASHRC = .bashrc |
| 3 | VIMRC = .vimrc | 7 | VIMRC = .vimrc |
| 4 | HERBSTLUFT = .config/herbstluftwm | 8 | HERBSTLUFT = herbstluftwm |
| 5 | XRESOURCES = .Xresources | 9 | XRESOURCES = .Xresources |
| 6 | 10 | ||
| 7 | 11 | ||
| @@ -9,42 +13,25 @@ install: all | |||
| 9 | 13 | ||
| 10 | all: bash vim xresources numix-no-title herbstluftwm | 14 | all: bash vim xresources numix-no-title herbstluftwm |
| 11 | 15 | ||
| 12 | numix-no-title: | 16 | numix-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 | ||
| 22 | herbstluftwm: | 19 | herbstluftwm: |
| 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 | ||
| 32 | bash: | 22 | bash: |
| 33 | #copy bashrc to home | 23 | ln -sf $(PWD)/$(BASHRC) ~ |
| 34 | cp -f $(BASHRC) ~ | ||
| 35 | 24 | ||
| 36 | vim: | 25 | vim: |
| 37 | #copy vimrc to home | 26 | ln -sf $(PWD)/$(VIMRC) ~ |
| 38 | cp -f $(VIMRC) ~ | ||
| 39 | 27 | ||
| 40 | xresources: | 28 | xresources: |
| 41 | #copy Xresources to home | 29 | ln -sf $(PWD)/$(XRESOURCES) ~ |
| 42 | cp -f $(XRESOURCES) ~ | ||
| 43 | 30 | ||
| 44 | uninstall: | 31 | uninstall: |
| 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) |
