-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
125 lines (104 loc) · 3.89 KB
/
Makefile
File metadata and controls
125 lines (104 loc) · 3.89 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
# ============================================================
# Makefile for coord_kit OpenSCAD Library
# ============================================================
# Simplified Makefile - actual logic lives in scripts/
#
# Usage:
# make - Build documentation and images
# make docs - Generate API documentation
# make images - Render example and test images
# make test - Run test suite
# make setup - Setup development environment
# make clean - Remove build artifacts
# make help - Show this help
# ============================================================
# CONFIGURATION
# ============================================================
SCRIPTS_DIR := scripts
# Directories
BUILD_DIR := build
DOCS_DIR := docs
# ============================================================
# DEFAULT TARGET
# ============================================================
.PHONY: all
all: docs images
@echo "✓ Build complete!"
# ============================================================
# BUILD TARGETS
# ============================================================
.PHONY: docs
docs:
@$(SCRIPTS_DIR)/generate_docs.sh
.PHONY: images
images:
@$(SCRIPTS_DIR)/render_images.sh
.PHONY: examples
examples:
@$(SCRIPTS_DIR)/render_images.sh --examples-only
.PHONY: test-images
test-images:
@$(SCRIPTS_DIR)/render_images.sh --tests-only
# ============================================================
# TEST TARGETS
# ============================================================
.PHONY: test
test:
@$(SCRIPTS_DIR)/run_tests.sh
# ============================================================
# SETUP TARGETS
# ============================================================
.PHONY: setup
setup:
@$(SCRIPTS_DIR)/setup.sh
# ============================================================
# CLEANING
# ============================================================
.PHONY: clean
clean:
@echo "Cleaning build artifacts..."
@rm -rf $(BUILD_DIR)
@echo "✓ Build artifacts removed"
.PHONY: clean-docs
clean-docs:
@echo "Cleaning generated documentation..."
@rm -rf $(DOCS_DIR)
@echo "✓ Documentation removed"
.PHONY: clean-all
clean-all: clean clean-docs
@echo "✓ All generated files removed"
# ============================================================
# UTILITY TARGETS
# ============================================================
.PHONY: help
help:
@echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
@echo "coord_kit - Makefile Help"
@echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
@echo ""
@echo "Setup:"
@echo " make setup Setup development environment (venv, tools)"
@echo ""
@echo "Build:"
@echo " make Build documentation and all images"
@echo " make docs Generate API documentation"
@echo " make images Render example and test images"
@echo " make examples Render only example images"
@echo " make test-images Render only test images"
@echo ""
@echo "Test:"
@echo " make test Run test suite"
@echo ""
@echo "Clean:"
@echo " make clean Remove build artifacts (preserves docs)"
@echo " make clean-all Remove build artifacts and docs"
@echo " make clean-docs Remove only generated docs"
@echo ""
@echo "Info:"
@echo " make help Show this help message"
@echo ""
@echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
@echo "First time setup:"
@echo " 1. make setup"
@echo " 2. make"
@echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"