forked from nicmcd/taskrun
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (27 loc) · 896 Bytes
/
Copy pathMakefile
File metadata and controls
37 lines (27 loc) · 896 Bytes
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
.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
python3 -m unittest -v -f
test/testprogs/alloclots: test/testprogs/alloclots.cc
$(MAKE) -C test/testprogs/
test/testprogs/burncycles: test/testprogs/burncycles.cc
$(MAKE) -C test/testprogs/
benchmark:
python3 test/benchmark.py
count:
@echo "taskrun/ - "$(shell echo taskrun/*.py | wc -w)" files"
@wc taskrun/*.py | sort -n -k1
@echo ""
@echo "test/ - "$(shell echo test/*.py | wc -w)" files"
@wc test/*.py | sort -n -k1