From 3ae8be4d10b7ae4d18515582b364bdf1c8cf5b63 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sun, 26 Mar 2023 18:03:15 +0200 Subject: [PATCH] cleanup --- Makefile | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 61aec7b..f48f959 100644 --- a/Makefile +++ b/Makefile @@ -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 @@ -126,7 +126,7 @@ sync-windows: @echo "(Windows) Scripts synced!" @echo -# CSGO (only if installed) +# CSGO (only if installed) @if [ -d $(CSGO_CFG) ]; then \ $(WGET) $(REPO_SRC)/games/csgo/autoexec.cfg -O $(CSGO_CFG)/autoexec.cfg; \ $(WGET) $(REPO_SRC)/games/csgo/myconfig.cfg -O $(CSGO_CFG)/myconfig.cfg; \ @@ -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)))