-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
65 lines (53 loc) · 1.3 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
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
.PHONY: all build clean test docs run workflow
build:
@echo
@echo "==================="
@echo "Building project..."
@echo "==================="
gprbuild -p sorting.gpr
all: default.cgpr build test docs
default.cgpr:
gprconfig --batch --config Ada --config C -o $@
clean:
@echo
@echo "==================="
@echo "Cleaning project..."
@echo "==================="
gprclean -r sorting.gpr
rm -rf build/obj
rm -f build/default.cgpr
rm -rf docs/gnatdoc
rm -rf test/harness
test/harness/test_runner:
@echo
@echo "==================="
@echo "Building tests... "
@echo "==================="
mkdir -p test/harness
gnat test -dd -P sorting.gpr -v -r
gprbuild -p -Ptest/harness/test_driver.gpr
test: test/harness/test_runner
@echo
@echo "==================="
@echo "Running tests... "
@echo "==================="
test/harness/test_runner --passed-tests=hide --skeleton-default=pass
docs:
@echo
@echo "==================="
@echo "Generating docs..."
@echo "==================="
mkdir -p docs/gnatdoc
gnatdoc -P sorting.gpr
run: all
@echo
@echo "==================="
@echo "Running project... "
@echo "==================="
build/sorting.exe
workflow:
@echo
@echo "==================="
@echo "Running workflow..."
@echo "==================="
act -s GITHUB_TOKEN=$(shell cat .token)