# Hide some verbose messages from Make MAKEFLAGS += --no-print-directory all: sync # === All platforms == sync-dotconfig: @mkdir -p $(HOME)/.config/fish/conf.d @mkdir -p $(HOME)/.config/fish/functions @echo .config directory synced! sync-emacs: @echo Emacs config synced! sync-mozilla: @echo Firefox config synced! sync-unison: @echo Unison preferences synced! # === Specific platforms == sync: ifeq ($(shell expr "uname -r" \> "archlinux"), 0) # Arch @$(MAKE) sync-dotconfig @$(MAKE) sync-emacs @$(MAKE) sync-mozilla else ifeq ($(shell expr "uname -r" \> "WSL2"), 0) # WSL @$(MAKE) sync-dotconfig @$(MAKE) sync-emacs @$(MAKE) sync-unison endif