forked from intel/interferencedetector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
27 lines (20 loc) · 785 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
PACKAGE_EXTERNAL := procmon.tgz
default: dist
.PHONY: default dist format format_check style_error_check check
dist/$(PACKAGE_EXTERNAL): procmon/procmon.py procmon/dockermon.py procmon/events.yaml procmon/NN_detect.py README.md LICENSE requirements.txt
rm -rf dist
rm -rf build
mkdir -p dist
mkdir -p build/procmon
cp procmon/procmon.py procmon/dockermon.py procmon/events.yaml procmon/NN_detect.py README.md LICENSE requirements.txt build/procmon/
cd build && tar -czf ../dist/procmon.tgz procmon/*
rm -rf build
format_check:
black --check procmon
format:
black procmon
style_error_check:
# ignore long lines and conflicts with black, i.e., black wins
flake8 procmon --ignore=E501,W503,E203
check: format_check style_error_check
dist: check dist/$(PACKAGE_EXTERNAL)