-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (28 loc) · 955 Bytes
/
Makefile
File metadata and controls
36 lines (28 loc) · 955 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Makefile for dotfiles management
# Run 'make help' for usage information
.PHONY: help install clean asdf asdf-clean
# Default target
.DEFAULT_GOAL := help
# Colors for output
YELLOW := \033[1;33m
GREEN := \033[0;32m
NC := \033[0m # No Color
help: ## Show this help message
@echo "Dotfiles Makefile"
@echo ""
@echo "Usage: make [target]"
@echo ""
@echo "Targets:"
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf " $(GREEN)%-15s$(NC) %s\n", $$1, $$2}'
install: ## Install dotfiles (run install.sh)
@echo "$(YELLOW)Installing dotfiles...$(NC)"
@./install.sh
clean: ## Remove all dotfile symlinks
@echo "$(YELLOW)Cleaning dotfiles...$(NC)"
@./cleanup.sh
asdf: ## Setup asdf plugins and tools
@echo "$(YELLOW)Setting up asdf...$(NC)"
@./asdf/setup.sh
asdf-clean: ## Remove all unused asdf plugin installations
@echo "$(YELLOW)Cleaning up asdf installations...$(NC)"
@./asdf/cleanup.sh