QUBES_DIRS = qubes dom0 ALL_DIRS = $(shell ls -d */ | sed 's#/##') GENERAL_DIRS = $(filter-out $(QUBES_DIRS), $(ALL_DIRS)) .PHONY: all apply-general apply-qubes install-apt-essentials clean all: apply-general apply-qubes apply-general: @echo "Applying general configurations..." stow --target=$(HOME) $(GENERAL_DIRS) apply-qubes: @echo "Applying Qubes configurations..." sudo rm -rf /rw/config/rc.local sudo stow --target=/ qubes install-apt-essentials: sudo apt install \ tig \ htop \ tree \ ripgrep \ net-tools \ stow \ zsh \ rsync \ shellcheck \ pass \ make \ cmake \ ninja-build \ gettext \ curl \ build-essential \ jq \ wget \ lua5.4 \ luarocks \ -y clean: @echo "Removing stowed configurations..." stow -D --target=$(HOME) $(GENERAL_DIRS) stow -D --target=\ qubes