-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
50 lines (41 loc) · 1.28 KB
/
Makefile
File metadata and controls
50 lines (41 loc) · 1.28 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
.PHONY: test unit-test integration-test install clean
# Default target
all: help
# Install the script
install:
@echo "Installing ajv-geojson-shim..."
@mkdir -p ~/.local/bin
@cp bin/ajv-geojson-shim ~/.local/bin/
@chmod +x ~/.local/bin/ajv-geojson-shim
@echo "Installed to ~/.local/bin/ajv-geojson-shim"
@echo "Make sure ~/.local/bin is in your PATH."
@echo "To uninstall, run 'make uninstall'."
@echo
@make help
# Uninstall the script
uninstall:
@echo "Uninstalling ajv-geojson-shim..."
@rm -f ~/.local/bin/ajv-geojson-shim
@echo "Uninstalled ajv-geojson-shim from ~/.local/bin"
# Run all tests
test: unit-test integration-test
# Run unit tests
unit-test:
@chmod +x tests/test-unit.sh
@./tests/test-unit.sh
@echo
# Run integration tests
integration-test:
@chmod +x tests/test-integration.sh
@./tests/test-integration.sh
@echo
# Show help
help:
@echo "Available commands:"
@echo " make - List commands"
@echo " make help - Show this help message"
@echo " make install - Install script to ~/.local/bin"
@echo " make uninstall - Uninstall script from ~/.local/bin"
@echo " make test - Run all tests"
@echo " make unit-test - Run unit tests only"
@echo " make integration-test - Run integration tests only"