X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=Makefile;h=a56f6e7640b751dd714e2ce6f0c6e18c1e66d229;hb=a97a6e0971b900d8068bb07ca52841157c0ab378;hp=cfec937e5230e888584b599735d5673997130128;hpb=7d4d7217bf0351568c95e7210bb37eab461b142e;p=khome.git 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