confOS/Makefile

43 lines
677 B
Makefile
Raw Normal View History

2023-03-19 19:05:07 +01:00
# 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!
2023-03-19 19:15:20 +01:00
2023-03-19 19:05:07 +01:00
sync-emacs:
@echo Emacs config synced!
sync-mozilla:
@echo Firefox config synced!
sync-unison:
@echo Unison preferences synced!
# === Specific platforms ==
sync:
2023-03-19 19:15:20 +01:00
ifeq ($(shell grep -c "archlinux" /proc/version), 1)
2023-03-19 19:05:07 +01:00
# Arch
@$(MAKE) sync-dotconfig
@$(MAKE) sync-emacs
@$(MAKE) sync-mozilla
2023-03-19 19:15:20 +01:00
else ifeq ($(shell grep -c "WSL" /proc/version), 1)
2023-03-19 19:05:07 +01:00
# WSL
@$(MAKE) sync-dotconfig
@$(MAKE) sync-emacs
@$(MAKE) sync-unison
endif