This commit is contained in:
Mylloon 2023-03-26 18:03:15 +02:00
parent d4feabf9e6
commit 3ae8be4d10
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -26,21 +26,20 @@ CSGO_CFG = $(PFx86)/Steam/steamapps/common/Counter-Strike\ Global\ Off
all: full-sync
# Pull latest changes
refresh:
@echo "Pull latest changes from repository..."
@$(VC) pull
@echo
# Pull and sync
full-sync:
@$(MAKE) refresh
@$(MAKE) sync
# === All platforms ==
# .config
sync-dotconfig:
# Fish
@ -60,6 +59,7 @@ sync-dotconfig:
@echo ".config directory synced!"
@echo
# .emacs.d
sync-emacs:
@mkdir -p $(HOME)/.emacs.d
@ -70,6 +70,7 @@ sync-emacs:
@echo "Emacs config synced!"
@echo
# .dotfiles
sync-dotfiles:
# .gitconfig
@ -86,10 +87,7 @@ sync-dotfiles:
@echo
# === Specific platforms ==
# Arch distro
# Arch distro specific
sync-arch:
# Fish
@$(WGET) $(REPO_SRC)/.config/fish/config_arch.fish -O $(HOME)/.config/fish/config.fish
@ -106,7 +104,8 @@ sync-arch:
# VSCodium
@$(WGET) $(REPO_SRC)/.config/VSCodium/product.json -O $(HOME)/.config/VSCodium/product.json
# Windows Subsystem for Linux
# Windows Subsystem for Linux specific
sync-wsl:
# Fish
@$(WGET) $(REPO_SRC)/.config/fish/config_wsl.fish -O $(HOME)/.config/fish/config.fish
@ -116,6 +115,7 @@ sync-wsl:
@mkdir -p $(HOME)/.unison
@$(WGET) $(REPO_SRC)/.unison/default.prf -O $(HOME)/.unison/default.prf
# Windows through WSL
sync-windows:
# Scripts
@ -140,6 +140,7 @@ sync-windows:
@echo "(Windows) Firefox synced!"
@echo
sync:
# Check if at least the platform is supported
ifneq (1, $(filter 1, $(ARCH) $(WSL)))