forked from norcalli/nvim-colorizer.lua
-
Notifications
You must be signed in to change notification settings - Fork 47
/
Copy pathMakefile
37 lines (30 loc) · 1.05 KB
/
Makefile
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
# Define variables for script paths
SCRIPTS_DIR=scripts
TRIE_TEST_SCRIPT=$(SCRIPTS_DIR)/trie-test.sh
TRIE_BENCHMARK_SCRIPT=$(SCRIPTS_DIR)/trie-benchmark.sh
MINIMAL_SCRIPT=$(SCRIPTS_DIR)/minimal-colorizer.sh
MINIMAL_COLORIZER=colorizer_minimal
MINIMAL_TRIE=colorizer_trie
help:
@echo "Available targets:"
@echo " make trie - Run trie test and benchmark"
@echo " make trie-test - Run trie test"
@echo " make trie-benchmark - Run trie benchmark"
@echo " make minimal - Run the minimal script"
@echo " make clean - Remove test/colorizer_*"
trie: trie-test trie-benchmark
trie-test:
@echo "Running trie test..."
@bash $(TRIE_TEST_SCRIPT)
trie-benchmark:
@echo "Running trie benchmark..."
@bash $(TRIE_BENCHMARK_SCRIPT)
minimal:
@echo "Running minimal config..."
@bash $(MINIMAL_SCRIPT)
clean:
@echo "Removing test/"$(MINIMAL_COLORIZER)
@rm -rf test/$(MINIMAL_COLORIZER)
@echo "Removing test/trie/"$(MINIMAL_TRIE)
@rm -rf test/trie/$(MINIMAL_TRIE)
.PHONY: help trie trie-test trie-benchmark minimal clean