-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
59 lines (40 loc) · 1.4 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
all:
@echo "make sdist | install | bdist | twine"
clean:
rm -f */*pyc
rm -rf build dist qlmux.egg-info
.PHONY: sdist install bdist
bdist:
python3 setup.py $@
sdist:
python3 setup.py $@
install:
@pip3 install --no-binary :all: --upgrade . || /bin/echo -e "\n****\nTo install without venv use: make install_with_break\n"
install_with_break:
pip3 install --no-binary :all: --upgrade --break-system-packages .
uninstall:
pip3 uninstall --yes gadgetconfig
uninstall_with_break:
pip3 uninstall --yes gadgetconfig --break-system-packages
twine:
twine upload dist/*
twine-test:
twine check dist/*
flake8a:
flake8 . --count --ignore=W391 --select=E9,F63,F7,F82 --show-source --statistics
flake8b:
flake8 . --ignore=E126,C901,E701,E117,E265,E722,W191,W391,E128 --count --exit-zero --max-complexity=10 --max-line-length=140 --statistics
doctest:
python3 -m doctest src/sysfstree/__init__.py -v
gadget_modules.tgz:
cd /; tar cvfz /tmp/$@ \
lib/modules/4.19.97-v7l+/kernel/drivers/usb/gadget/function/u_serial.ko \
lib/modules/4.19.97-v7l+/kernel/drivers/usb/gadget/function/u_ether.ko \
lib/modules/4.19.97-v7l+/kernel/drivers/usb/gadget/function/usb_f_acm.ko \
lib/modules/4.19.97-v7l+/kernel/drivers/usb/gadget/function/usb_f_ecm.ko \
lib/modules/4.19.97-v7l+/kernel/drivers/usb/dwc2 \
lib/modules/4.19.97-v7l+/kernel/drivers/usb/mon
mv /tmp/$@ .
sysfs.tgz:
cd /; tar cvfz /tmp/$@ \
mv /tmp/$@ .