-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile
38 lines (27 loc) · 978 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
.SUFFIXES:
.PHONY: help install clean lint test benchmark count
help:
@echo "options are: install clean lint test benchmark count"
install:
python3 setup.py install --user --record files.txt
uninstall:
cat files.txt | xargs rm -rf
clean:
rm -rf build dist taskrun.egg-info taskrun/*.pyc taskrun/__pycache__ test/*.pyc test/__pycache__
$(MAKE) -C test/testprogs/ clean
lint:
pylint -r n taskrun
test: test/testprogs/alloclots test/testprogs/burncycles test/testprogs/besleepy
python3 -m unittest -v -f --buffer
test/testprogs/alloclots: test/testprogs/alloclots.cc
$(MAKE) -C test/testprogs/
test/testprogs/burncycles: test/testprogs/burncycles.cc
$(MAKE) -C test/testprogs/
test/testprogs/besleepy: test/testprogs/besleepy.cc
$(MAKE) -C test/testprogs/
benchmark:
python3 test/benchmark.py
count:
@wc taskrun/*.py test/*.py | sort -n -k1
@echo "files : "$(shell echo taskrun/*.py test/*.py | wc -w)
@echo "commits : "$(shell git rev-list HEAD --count)