Files
dotfiles/Makefile

41 lines
1.7 KiB
Makefile
Raw Normal View History

2025-09-18 19:54:02 -04:00
# Define list of directories you want to stow
2026-07-06 16:53:38 -04:00
CONFIG_DIRS := btop doom hypr kitty exokortex nvim rclone starship tmux wallpapers waybar wireplumber wofi yazi zsh
2025-09-18 19:54:02 -04:00
2026-07-06 16:53:38 -04:00
# Default target for a fully-equipped workstation
all: stow_all stow_rclone stow_exokortex
2025-09-18 19:54:02 -04:00
wal -i ~/.config/wallpapers/green_yellow_forest.jpg -o ~/.config/waybar/launch.sh
2026-07-06 16:53:38 -04:00
fastfetch
2025-09-18 19:54:02 -04:00
2026-07-06 16:53:38 -04:00
# Base configurations common to ALL hosts (excludes host-specific network/system automation)
stow_all: $(filter-out rclone exokortex, $(CONFIG_DIRS))
@echo "Removing legacy shell symlinks if they exist..."
2025-09-18 19:54:02 -04:00
@if [ -L $$HOME/.zshrc ]; then rm $$HOME/.zshrc; fi
@if [ -L $$HOME/.tmux.conf ]; then rm $$HOME/.tmux.conf; fi
2026-07-06 16:53:38 -04:00
@echo "Stowing baseline configurations..."
@$(foreach dir,$(filter-out rclone exokortex, $(CONFIG_DIRS)), $(MAKE) stow_$(dir);)
2025-09-18 19:54:02 -04:00
2026-07-06 16:53:38 -04:00
# Generic atomic stow command using Restow (-R) for clean tracking
2025-09-18 19:54:02 -04:00
stow_%:
2026-07-06 16:53:38 -04:00
@echo "Stowing package: $*"
stow -R -v -t $(HOME) $*
2025-09-18 19:54:02 -04:00
2026-07-06 16:53:38 -04:00
# Dedicated target for rclone (Omit this target on hosts that don't need it)
stow_rclone:
@echo "Stowing rclone securely..."
stow -R -v -t $(HOME) rclone
2025-09-18 19:54:02 -04:00
@echo "Running post-installation script for rclone"
@bash $(CURDIR)/scripts/rclone_post_install.sh
2026-07-06 16:53:38 -04:00
# Dedicated target for exokortex (Omit this target on sterile servers if needed)
stow_exokortex:
@echo "Stowing exokortex automation layers..."
stow -R -v -t $(HOME) exokortex
@echo "Running post-installation script for exokortex"
@bash $(CURDIR)/scripts/exokortex_post_install.sh
# Optional: Global cleanup target you only run manually when you want a deep system purge
prune_dead_links:
@echo "Purging all broken symlinks across core configuration profiles..."
find ~/.config -xtype l -delete -print
find ~/.local/bin -xtype l -delete -print