diff --git a/Makefile b/Makefile index 2025aef..ddfd902 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,7 @@ # make Defaults to `make install` # make install Installs dotfiles # make uninstall Uninstalls dotfiles +# make prune Removes stale links NS_REPO_PATH := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))) NS_REPO_DIR := $(shell basename $(NS_REPO_PATH)) @@ -17,3 +18,7 @@ install: .PHONY: uninstall uninstall: stow -D "${NS_REPO_DIR}" --dir="${NS_PARENT_PATH}" --target="${HOME}" --no-folding --verbose=2 + +.PHONY: prune +prune: + stow -R "${NS_REPO_DIR}" --dir="${NS_PARENT_PATH}" --target="${HOME}" --no-folding --verbose=2