From: Samir Benmendil Date: Sun, 16 Oct 2016 12:52:36 +0000 (+0100) Subject: Makefile: add separate targets for mpd and ncmpcpp X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/abd7add3283174112dd5eb0cb4087015f493b95a Makefile: add separate targets for mpd and ncmpcpp --- diff --git a/Makefile b/Makefile index 44aacdc..e4f5e15 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,22 @@ APATH := $(realpath .) FILES := bin -DOTFILES := conky* goobookrc msmtp* mutt ncmpcpp profile tmux.conf weechat Xresources xprofile zprofile zshenv zshrc -CONFIGFILES := aliases compton.conf git gnupg mpd mpv offlineimap ranger retroarch systemd vim xbindkeys xkb zsh +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 \