From abd7add3283174112dd5eb0cb4087015f493b95a Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Sun, 16 Oct 2016 13:52:36 +0100 Subject: [PATCH] Makefile: add separate targets for mpd and ncmpcpp --- Makefile | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) 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 \ -- 2.48.1