Switch Makefile back to https repo urls
Update directive will update repo urls before pulling
This commit is contained in:
parent
3764e5cee5
commit
2cc371ed63
11
Makefile
11
Makefile
|
@ -1,8 +1,8 @@
|
||||||
$(eval HOSTNAME=$(shell hostname))
|
$(eval HOSTNAME=$(shell hostname))
|
||||||
NIXOS_REPO := ssh://gitea@git.xenia.me.uk:2222/xenia/nixos.git
|
NIXOS_REPO := https://git.xenia.me.uk/xenia/nixos.git
|
||||||
NVIM_REPO := ssh://gitea@git.xenia.me.uk:2222/xenia/nvim.git
|
NVIM_REPO := https://git.xenia.me.uk/xenia/nvim.git
|
||||||
HYPR_REPO := ssh://gitea@git.xenia.me.uk:2222/xenia/hyprland.git
|
HYPR_REPO := https://git.xenia.me.uk/xenia/hyprland.git
|
||||||
WAYBAR_REPO := ssh://gitea@git.xenia.me.uk:2222/xenia/waybar.git
|
WAYBAR_REPO := https://git.xenia.me.uk/xenia/waybar.git
|
||||||
HOMEMANAGER_CONFIG := $(PWD)/home/$(HOSTNAME)/$(USER).nix
|
HOMEMANAGER_CONFIG := $(PWD)/home/$(HOSTNAME)/$(USER).nix
|
||||||
CONFIG_DIR := $(if $(XDG_CONFIG_HOME), $(XDG_CONFIG_HOME), $(HOME)/.config)
|
CONFIG_DIR := $(if $(XDG_CONFIG_HOME), $(XDG_CONFIG_HOME), $(HOME)/.config)
|
||||||
BIN_DIR := $(HOME)/.local/bin
|
BIN_DIR := $(HOME)/.local/bin
|
||||||
|
@ -14,6 +14,9 @@ default: nvim hypr waybar
|
||||||
[ -e /etc/nixos/ ] && make nixos || make home
|
[ -e /etc/nixos/ ] && make nixos || make home
|
||||||
|
|
||||||
update: $(CONFIG_DIR)/nvim $(CONFIG_DIR)/hypr $(CONFIG_DIR)/waybar
|
update: $(CONFIG_DIR)/nvim $(CONFIG_DIR)/hypr $(CONFIG_DIR)/waybar
|
||||||
|
git -C $(CONFIG_DIR)/nvim remote set-url origin $(NVIM_REPO)
|
||||||
|
git -C $(CONFIG_DIR)/hypr remote set-url origin $(HYPR_REPO)
|
||||||
|
git -C $(CONFIG_DIR)/waybar remote set-url origin $(WAYBAR_REPO)
|
||||||
for repo in $?; do git -C $$repo pull --ff-only; done
|
for repo in $?; do git -C $$repo pull --ff-only; done
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
|
Loading…
Reference in a new issue