Move dirs list to dedicated file
authorSiraaj Khandkar <siraaj@khandkar.net>
Sun, 17 Jul 2022 22:22:17 +0000 (18:22 -0400)
committerSiraaj Khandkar <siraaj@khandkar.net>
Sun, 17 Jul 2022 22:22:17 +0000 (18:22 -0400)
Makefile
dirs [new file with mode: 0644]

index 3349116..87aa969 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -49,35 +49,7 @@ home: compiled dirs
        xdg-user-dirs-update
 
 dirs:
-       mkdir -p ~/arc/aud
-       mkdir -p ~/arc/backup
-       mkdir -p ~/arc/doc
-       mkdir -p ~/arc/img
-       mkdir -p ~/arc/log
-       mkdir -p ~/arc/misc
-       mkdir -p ~/arc/sw/bin
-       mkdir -p ~/arc/sw/src/misc
-       mkdir -p ~/arc/sw/src/pkgs
-       mkdir -p ~/arc/sw/src/repos
-       mkdir -p ~/arc/sw/src/tarballs
-       mkdir -p ~/arc/vid
-       mkdir -p ~/arc/work
-       mkdir -p ~/bin
-       mkdir -p ~/dl
-       mkdir -p ~/doc
-       mkdir -p ~/ex
-       mkdir -p ~/fork
-       mkdir -p ~/lib
-       mkdir -p ~/org
-       mkdir -p ~/proj/priv
-       mkdir -p ~/proj/pub
-       mkdir -p ~/snips
-       mkdir -p ~/tmp
-       mkdir -p ~/var/lib/mpd/playlists
-       mkdir -p ~/var/log/mpd
-       mkdir -p ~/var/run/mpd
-       mkdir -p ~/work
-       mkdir -p ~/x
+       mkdir -p $(shell ./list dirs)
 
 compiled:
        mkdir -p bin
diff --git a/dirs b/dirs
new file mode 100644 (file)
index 0000000..878f793
--- /dev/null
+++ b/dirs
@@ -0,0 +1,29 @@
+~/arc/aud
+~/arc/backup
+~/arc/doc
+~/arc/img
+~/arc/log
+~/arc/misc
+~/arc/sw/bin
+~/arc/sw/src/misc
+~/arc/sw/src/pkgs
+~/arc/sw/src/repos
+~/arc/sw/src/tarballs
+~/arc/vid
+~/arc/work
+~/bin
+~/dl
+~/doc
+~/ex
+~/fork
+~/lib
+~/org
+~/proj/priv
+~/proj/pub
+~/snips
+~/tmp
+~/var/lib/mpd/playlists
+~/var/log/mpd
+~/var/run/mpd
+~/work
+~/x
This page took 0.039022 seconds and 4 git commands to generate.