-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
42 lines (31 loc) · 1.1 KB
/
makefile
File metadata and controls
42 lines (31 loc) · 1.1 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
.PHONY: help all clean test setup-repo
.DEFAULT_GOAL := all
help:
@echo "Project Build Targets:"
@echo " all - Compile the project"
@echo " clean - Remove build artifacts"
@echo ""
@echo "Repository Operations:"
@echo " test - Run tests"
@echo " setup-repo - Configure repository Localy"
@echo ""
@echo "Miscellaneous:"
@echo " help - Show this help"
@echo ""
## ----------------------------------------------------------------------------
# @section PROJECT_TARGETS
all:
@echo "[all] No build steps defined yet."
clean:
@echo "[clean] No cleanup needed (no build artifacts)."
## EOF EOF EOF PROJECT_TARGETS
## ----------------------------------------------------------------------------
## ----------------------------------------------------------------------------
# @section REPOSITORY_MANAGEMENT
test: all
@python3 -m unittest discover tests
setup-repo:
@echo "#!/bin/sh\nmake test" > .git/hooks/pre-commit
@chmod +x .git/hooks/pre-commit
## EOF EOF EOF REPOSITORY_MANAGEMENT
## ----------------------------------------------------------------------------