]> git.rmz.io Git - dotfiles.git/commitdiff
Makefile: add separate targets for mpd and ncmpcpp
authorSamir Benmendil <me@rmz.io>
Sun, 16 Oct 2016 12:52:36 +0000 (13:52 +0100)
committerSamir Benmendil <me@rmz.io>
Sun, 16 Oct 2016 12:52:36 +0000 (13:52 +0100)
Makefile

index 44aacdc7bf63e20b2d9e43ace9096d6cb186926b..e4f5e152dae05c544bb34f87367a2c9302ede025 100644 (file)
--- 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 \