X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/597f492caf7440699e8da0ae5bdef6499d3b2f2c..abd7add3283174112dd5eb0cb4087015f493b95a:/Makefile diff --git a/Makefile b/Makefile index cfbb170..e4f5e15 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,22 @@ APATH := $(realpath .) -RPATH := $(subst $(wildcard ~/),,$(APATH)) FILES := bin -DOTFILES := aliases bash* conky* flexget git* vim* xbindkeysrc Xmodmap zsh* -CONFIGFILES := retroarch +DOTFILES := conky* goobookrc msmtp* mutt profile tmux.conf weechat Xresources xprofile zprofile zshenv zshrc +CONFIGFILES := aliases compton.conf git gnupg mpv offlineimap ranger retroarch systemd vim xbindkeys xkb zsh .PHONY: install $(FILES) $(DOTFILES) $(CONFIGFILES) install: $(FILES) $(DOTFILES) $(CONFIGFILES) +mpd: + ln -sfT $(APATH)/mpd ~/.config/mpd + mkdir -p ~/.local/share/mpd/playlists +.PHONY: mpd + +ncmpcpp: + ln -sfT $(APATH)/ncmpcpp ~/.config/ncmpcpp + mkdir -p ~/.local/share/mpd/lyrics +.PHONY: ncmpcpp + $(FILES): @if [[ -e ~/$@ && ! -L ~/$@ ]]; then \ if [[ -d $@ ]]; then \ @@ -17,7 +26,7 @@ $(FILES): fi; \ rm -r ~/$@; \ fi; - ln -sfT $(RPATH)/$@ ~/$@ + ln -sfT $(APATH)/$@ ~/$@ $(DOTFILES): @if [[ -e ~/.$@ && ! -L ~/.$@ ]]; then \ @@ -28,7 +37,7 @@ $(DOTFILES): fi; \ rm -r ~/.$@; \ fi; - ln -sfT $(RPATH)/$@ ~/.$@ + ln -sfT $(APATH)/$@ ~/.$@ $(CONFIGFILES): @if [[ -e ~/.config/$@ && ! -L ~/.config/$@ ]]; then \ @@ -39,4 +48,4 @@ $(CONFIGFILES): fi; \ rm -r ~/.config/$@; \ fi; - ln -sfT $(RPATH)/$@ ~/.config/$@ + ln -sfT $(APATH)/$@ ~/.config/$@