Stop hiding commands in recipes
[khome.git] / Makefile
index d204943..19014a3 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -38,24 +38,18 @@ default:
        @exit 1
 
 home: mpdconf compiled
-       @cp  -Rp       bin           $(HOME)/
-       @cp  -Rp  home/bin           $(HOME)/
-       @cp  -Rp  home/lib           $(HOME)/
-       @cp       home/.compton.conf $(HOME)/
-       @cp  -Rp  home/.config/      $(HOME)/
-       @cp  -Rp  home/.newsboat/    $(HOME)/
-       @cp       home/.profile      $(HOME)/
-       @cp       home/.fonts.conf   $(HOME)/
-       @cp       home/.Rprofile     $(HOME)/
-       @cp       home/.tmux.conf    $(HOME)/
-       @cp       home/.xbindkeysrc  $(HOME)/
+       cp -Rp bin $(HOME)/
+       # Limit depth because directories are copied recursively:
+       find home -maxdepth 1 -print0 \
+       | grep -zv '^home$$' \
+       | xargs -0 -I% cp -Rp % ~
 
 mpdconf:
-       @mkdir -p ~/Archives/Audio
-       @mkdir -p ~/var/lib/mpd/playlists
-       @mkdir -p ~/var/log/mpd
-       @mkdir -p ~/var/run/mpd
-       @cp home/.mpdconf $(HOME)/
+       mkdir -p ~/Archives/Audio
+       mkdir -p ~/var/lib/mpd/playlists
+       mkdir -p ~/var/log/mpd
+       mkdir -p ~/var/run/mpd
+       cp home/.mpdconf $(HOME)/
 
 compiled:
        mkdir -p bin
@@ -63,7 +57,7 @@ compiled:
        mv src/clockloop bin/
 
 font_cache:
-       @fc-cache -fv
+       fc-cache -fv
 
 #
 # Golang
This page took 0.024714 seconds and 4 git commands to generate.