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