Automate home recipe
authorSiraaj Khandkar <siraaj@khandkar.net>
Tue, 20 Oct 2020 01:35:58 +0000 (21:35 -0400)
committerSiraaj Khandkar <siraaj@khandkar.net>
Tue, 20 Oct 2020 01:35:58 +0000 (21:35 -0400)
Makefile

index 563f6f4..69ee41f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -39,17 +39,10 @@ default:
 
 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  home/.Mathematica/ $(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
This page took 0.029038 seconds and 4 git commands to generate.