Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- APATH := $(realpath .)
- FILES := bin
- DOTFILES := conky* git* goobookrc msmtp* mutt ncmpcpp offlineimap* profile weechat xbindkeysrc Xresources xprofile zprofile zshrc
- CONFIGFILES := aliases compton.conf git mimeo.conf mpd retroarch vim xkb zsh
- .PHONY: install $(FILES) $(DOTFILES) $(CONFIGFILES)
- install: $(FILES) $(DOTFILES) $(CONFIGFILES)
- $(FILES):
- @if [[ -e ~/$@ && ! -L ~/$@ ]]; then \
- if [[ -d $@ ]]; then \
- cp -r ~/$@/* $@; \
- else \
- cp -r ~/$@ $@; \
- fi; \
- rm -r ~/$@; \
- fi;
- ln -sfT $(APATH)/$@ ~/$@
- $(DOTFILES):
- @if [[ -e ~/.$@ && ! -L ~/.$@ ]]; then \
- if [[ -d .$@ ]]; then \
- cp -r ~/.$@/* $@; \
- else \
- cp -r ~/.$@ $@; \
- fi; \
- rm -r ~/.$@; \
- fi;
- ln -sfT $(APATH)/$@ ~/.$@
- $(CONFIGFILES):
- @if [[ -e ~/.config/$@ && ! -L ~/.config/$@ ]]; then \
- if [[ -d .config/$@ ]]; then \
- cp -r ~/.config/$@/* $@; \
- else \
- cp -r ~/.config/$@ $@; \
- fi; \
- rm -r ~/.config/$@; \
- fi;
- ln -sfT $(APATH)/$@ ~/.config/$@
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement