1
0
Fork 0

clean up makefile and separate general from qubes configs

This commit is contained in:
Anton Livaja 2025-03-02 15:20:32 -05:00
parent 7bec16facc
commit 19de06e60f
Signed by: anton
GPG Key ID: 44A86CFF1FDF0E85
7 changed files with 20 additions and 3 deletions

View File

@ -1,3 +1,20 @@
.PHONY: apply
apply:
stow --target=$${HOME} */
QUBES_DIRS = qubes dom0
ALL_DIRS = $(shell ls -d */ | sed 's#/##')
GENERAL_DIRS = $(filter-out $(QUBES_DIRS), $(ALL_DIRS))
.PHONY: all apply apply-general apply-qubes clean
all: apply-general apply-qubes
apply-general:
@echo "Applying general configurations..."
stow --target=$(HOME) $(GENERAL_DIRS)
apply-qubes:
@echo "Applying Qubes configurations..."
stow --target=/ qubes
clean:
@echo "Removing stowed configurations..."
stow -D --target=$(HOME) $(GENERAL_DIRS)
stow -D --target=/ qubes