-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
74 lines (60 loc) · 1.8 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
66
67
68
69
70
71
72
73
74
FILES := \
models.html \
IDB1.log \
run.py \
tests.out \
tests.py
models.html: models.py
pydoc3 -w models.py
IDB1.log:
git log > IDB1.log
IDB2.log:
git log > IDB2.log
IDB3.log:
git log > IDB3.log
# RunCollatz.tmp: RunCollatz.in RunCollatz.out RunCollatz.py
# ./RunCollatz.py < RunCollatz.in > RunCollatz.tmp
# diff RunCollatz.tmp RunCollatz.out
tests.tmp: tests.py
coverage3 run --include="./*" --branch tests.py > tests.tmp 2>&1
coverage3 report -m >> tests.tmp
cat tests.tmp
check:
@not_found=0; \
for i in $(FILES); \
do \
if [ -e $$i ]; \
then \
echo "$$i found"; \
else \
echo "$$i NOT FOUND"; \
not_found=`expr "$$not_found" + "1"`; \
fi \
done; \
if [ $$not_found -ne 0 ]; \
then \
echo "$$not_found failures"; \
exit 1; \
fi; \
echo "success";
clean:
rm -f .coverage
rm -f *.pyc
rm -rf server/__pycache__
rm -rf __pycache__
rm -f tests.tmp
config:
git config -l
html: GamesObservatory.html
log: GamesObservatory.log
scrub:
make clean
rm -f GamesObservatory.html
rm -f GamesObservatory.log
status:
make clean
@echo
git branch
git remote -v
git status
test: tests.tmp