Enhanced GNU stow helper with colored output and useful targets.
Original: https://github.com/nbeaver/stow-makefile
mkdir ~/stow-packages && cd ~/stow-packages
# get the Makefile
mkdir vim-config && touch vim-config/.vimrc
makemake/make stow— stow all packages to $HOMEmake dry-run— preview changes without applyingmake restow— restow existing packagesmake delete— remove stowed symlinksmake clean-broken— list broken symlinks in $HOMEmake clean-broken go— remove broken symlinks (no confirmation)
IGNORE_PACKAGES="pkg1 pkg2"— skip specific packagesVERBOSITY=2withmake stow-verbose— detailed outputSTOW_ONLY=1withclean-broken— only scan stow-managed linksNO_COLOR=1— disable colors
Create .stowignore in repo root to ignore packages (one per line, comments allowed):
# temporary packages
test-config
old-vim
make delete # unstow everything
mv ~/stow-packages ~/new-path # move directory
cd ~/new-path && make # restow from new location