From f5dbe9316878ce19c05ab924d45e23dbd5a763ac Mon Sep 17 00:00:00 2001 From: Naomi Carrigan Date: Mon, 22 Dec 2025 16:34:39 -0800 Subject: [PATCH] feat: makefile --- Makefile | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..9613983 --- /dev/null +++ b/Makefile @@ -0,0 +1,36 @@ +.PHONY: help push pull test + +# Colors for pretty output +CYAN := \033[0;36m +GREEN := \033[0;32m +YELLOW := \033[1;33m +MAGENTA := \033[0;35m +BOLD := \033[1m +NC := \033[0m + +# Default target - show help +.DEFAULT_GOAL := help + +help: ## Show this help message + @echo "" + @echo "$(CYAN)$(BOLD)╔═══════════════════════════════════════════════╗$(NC)" + @echo "$(CYAN)$(BOLD)║$(NC) $(MAGENTA)$(BOLD)✨ Espanso Config Makefile ✨$(NC) $(CYAN)$(BOLD)║$(NC)" + @echo "$(CYAN)$(BOLD)╚═══════════════════════════════════════════════╝$(NC)" + @echo "" + @echo "$(GREEN)$(BOLD)📋 Available Commands:$(NC)" + @echo "" + @echo " $(YELLOW)$(BOLD)make push$(NC) $(CYAN)➜$(NC) Push the local match directory to the remote Espanso config" + @echo " $(YELLOW)$(BOLD)make pull$(NC) $(CYAN)➜$(NC) Pull the remote match directory to the local Espanso config" + @echo " $(YELLOW)$(BOLD)make test$(NC) $(CYAN)➜$(NC) Test the Espanso config for duplicate triggers and replace values" + @echo "" + @echo "$(CYAN)$(BOLD)━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━$(NC)" + @echo "" + +push: ## Push the local match directory to the remote Espanso config + ./push.sh + +pull: ## Pull the remote match directory to the local Espanso config + ./pull.sh + +test: ## Test the Espanso config for duplicate triggers and replace values + ./test.sh \ No newline at end of file