From: Siraaj Khandkar Date: Thu, 30 Sep 2021 11:57:40 +0000 (-0400) Subject: Break apart home recipe X-Git-Url: https://git.xandkar.net/?a=commitdiff_plain;h=a97a6e0971b900d8068bb07ca52841157c0ab378;p=khome.git Break apart home recipe --- diff --git a/Makefile b/Makefile index cfec937..a56f6e7 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,8 @@ endif home \ diff \ pull \ - mpdconf \ + push \ + mpdconf_dirs \ pkgs_void \ pkgs_void_update \ pkgs_brew_cask_install \ @@ -41,20 +42,16 @@ default: @echo '================================================================================' @exit 1 -home: mpdconf compiled +home: compiled | mpdconf_dirs cp -Rp bin $(HOME)/ - # Limit depth because directories are copied recursively: - find home -maxdepth 1 -print0 \ - | $(GREP) -zv '^home$$' \ - | xargs -0 -I% cp -Rp % ~ + $(MAKE) push xdg-user-dirs-update -mpdconf: +mpdconf_dirs: mkdir -p ~/arc/aud mkdir -p ~/var/lib/mpd/playlists mkdir -p ~/var/log/mpd mkdir -p ~/var/run/mpd - cp home/.mpdconf $(HOME)/ compiled: mkdir -p bin @@ -167,6 +164,12 @@ pull: | $(SED) -z 's/^home\///g' \ | xargs -0 -I% sh -c '$(DIFF) -q ~/% home/% > /dev/null || cp ~/% home/%' +push: + # Limit depth because directories are copied recursively: + find home -maxdepth 1 -print0 \ + | $(GREP) -zv '^home$$' \ + | xargs -0 -I% cp -Rp % ~ + clean: rm -rf ./debfiles cd src && make clean