summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorToby Vincent <tobyv13@gmail.com>2022-04-02 19:12:11 -0500
committerToby Vincent <tobyv13@gmail.com>2022-04-02 19:12:11 -0500
commit606e6cfaabb712808790916405f120d8bf30b9a4 (patch)
tree2048ef22ed7b6bccf5104f75da7926a0931ab54b
parent4391d515a6926600a82bf88bd1dd3ece522f7408 (diff)
refactor: makefile improvements
-rw-r--r--.stowrc4
-rw-r--r--makefile49
2 files changed, 32 insertions, 21 deletions
diff --git a/.stowrc b/.stowrc
index 7319f24..5d35626 100644
--- a/.stowrc
+++ b/.stowrc
@@ -1,6 +1,4 @@
--verbose
--dotfiles
--no-folding
---target=$HOME
---override=.gnupg/gpg-agent.conf
---override=.config/alacritty/* \ No newline at end of file
+--target=$HOME \ No newline at end of file
diff --git a/makefile b/makefile
index 7ea14b0..84c5812 100644
--- a/makefile
+++ b/makefile
@@ -6,8 +6,38 @@ BASH_COMP_DIR := $(HOME)/.local/share/bash-completion/completions
ARCH := $(shell uname -m | sed s/aarch64/arm64/ | sed s/x86_64/amd64/ | sed s/armv7l/armv6/)
+.PHONY: interactive stow_all unstow clean gpg wsl
-.PHONY: interactive stow unstow clean gpg wsl
+# TODO https://github.com/andrewsardone/dotfiles/blob/master/Makefile
+stow: # Install configuration files
+ stow alacritty
+ stow bash
+ stow bat
+ stow git
+ stow gnupg
+ stow lazygit
+ stow nvim
+ stow scripts
+ stow sheldon
+ stow ssh
+ stow starship
+ stow sway
+ stow tmux
+ stow zsh
+ if [ -n "$$WSL_DISTRO_NAME" ]; then stow wsl --override=/*; fi
+
+unstow: # Uninstall configuration files
+ stow --delete */
+
+clean: # Remove all broken symbolic links from $HOME (recursivly)
+ find $(HOME) -type l -exec sh -c 'for x; do [ -e "$$x" ] || rm -v "$$x"; done' _ {} +
+
+wsl: stow # Run WSL install script
+ ./wsl/.local/bin/wsl-installer.sh
+
+gpg: # Install GPG keys
+ gpg --auto-key-locate keyserver --locate-keys tobyv13@gmail.com
+ gpg --import-ownertrust $(HOME)/.gnupg/trustfile.txt
$(ZSH_COMP_DIR):
mkdir -p $(ZSH_COMP_DIR)
@@ -22,23 +52,6 @@ interactive: fzf rg # Interactive target runner
--preview 'echo; echo {3} "-" {4}; echo; bat --style=auto --color=always {..1} --highlight-line {2}' \
--preview-window '80%,border-bottom,+{2}+3/3,~3'
-stow: # Install configuration files
- stow */
-
-unstow: # Uninstall configuration files
- stow --delete */
-
-clean: # Remove all broken symbolic links from $HOME (recursivly)
- find $(HOME) -type l -exec sh -c 'for x; do [ -e "$$x" ] || rm -v "$$x"; done' _ {} +
-
-gpg: # Install GPG keys
- gpg --auto-key-locate keyserver --locate-keys tobyv13@gmail.com
- gpg --import-ownertrust $(HOME)/.gnupg/trustfile.txt
-
-wsl: # Run WSL install script
- stow wsl
- ./wsl/.local/bin/wsl-installer.sh
-
cargo rust: $(ZSH_COMP_DIR) $(BASH_COMP_DIR) # Install rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path
rustup completions bash >$(BASH_COMP_DIR)/rustup