From: Siraaj Khandkar Date: Tue, 20 Oct 2020 01:35:58 +0000 (-0400) Subject: Automate home recipe X-Git-Url: https://git.xandkar.net/?p=khome.git;a=commitdiff_plain;h=99e81ec20c0fa6dc0ce3c79333e48c9920adde5c Automate home recipe --- diff --git a/Makefile b/Makefile index 563f6f4..69ee41f 100644 --- 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