diff --git a/Makefile b/Makefile index 5f335686..8d6d211a 100644 --- a/Makefile +++ b/Makefile @@ -8,17 +8,18 @@ CONFIG_DIR := $(if $(XDG_CONFIG_HOME), $(XDG_CONFIG_HOME), $(HOME)/.config) BIN_DIR := $(HOME)/.local/bin HOMEMANAGER_CONFIG_DIR := $(CONFIG_DIR)/home-manager -.PHONY: default all clean nixos home nvim hypr waybar +.PHONY: default update clean nixos home nvim hypr waybar -default: +default: nvim hypr waybar [ -e /etc/nixos/ ] && make nixos || make home -all: default nvim +update: $(CONFIG_DIR)/nvim $(CONFIG_DIR)/hypr $(CONFIG_DIR)/waybar + for repo in $?; do git -C $$repo pull --ff-only; done clean: [ -e $(HOMEMANAGER_CONFIG_DIR) ] && rm -rf $(HOMEMANAGER_CONFIG_DIR) -nixos: /etc/nixos/config hypr waybar +nixos: /etc/nixos/config home: $(HOMEMANAGER_CONFIG_DIR)/home.nix