-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (31 loc) · 864 Bytes
/
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
all : build test
build:
mkdir cmake-build-debug || true
cd cmake-build-debug && cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_DEPENDS_USE_COMPILER=FALSE -G "CodeBlocks - Unix Makefiles" ..
cd cmake-build-debug && make all
.PHONY: build
clean:
rm -rf ./cmake-build*
test: test-unit test-text
@echo "All tests passing"
.PHONY: test
test-unit: build
./cmake-build-debug/unit-tests
.PHONY: test-unit
test-text: build
./cmake-build-debug/text-tests > text-tests.txt
diff text-tests.txt text-tests.expected.txt
.PHONY: test-text
install: install-githooks
install-githooks:
cp -R ./githooks/* .git/hooks/
chmod +x .git/hooks/
.PHONY: install-githooks
pre-commit: build test
.PHONY: pre-commit
pre-push:
@echo "Nothing to do"
.PHONY: pre-push
test-text-accept-golden-master:
cp text-tests.txt text-tests.expected.txt
.PHONY: test-text-accept-golden-master