Add a common dir layout recipe
[khome.git] / Makefile
index 01156ae..988af3a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -22,7 +22,7 @@ endif
     diff \
     pull \
     push \
-    mpdconf_dirs \
+    dirs \
     pkgs_void \
     pkgs_void_update \
     pkgs_brew_cask_install \
@@ -43,13 +43,18 @@ default:
        @echo '================================================================================'
        @exit 1
 
-home: compiled | mpdconf_dirs
+home: compiled dirs
        cp -Rp bin $(HOME)/
        $(MAKE) push
        xdg-user-dirs-update
 
-mpdconf_dirs:
+dirs:
        mkdir -p ~/arc/aud
+       mkdir -p ~/arc/img
+       mkdir -p ~/arc/vid
+       mkdir -p ~/dl
+       mkdir -p ~/doc
+       mkdir -p ~/proj/{pub,priv}
        mkdir -p ~/var/lib/mpd/playlists
        mkdir -p ~/var/log/mpd
        mkdir -p ~/var/run/mpd
@@ -167,6 +172,10 @@ pull:
        | xargs -0 -I% sh -c '$(DIFF) -q ~/% home/% > /dev/null || cp ~/% home/%'
 
 push:
+       # TODO Backup files before replacing.
+       #      But - recursive copy is not a good strategy for this.
+       #      Need to do a file by file pass, like the diff recipe.
+       #
        # Limit depth because directories are copied recursively:
        find home -maxdepth 1 -print0 \
        | $(GREP) -zv '^home$$' \
This page took 0.025697 seconds and 4 git commands to generate.