1
- # Copyright (C) 2020 Mark Blakeney. This program is distributed under
2
- # the terms of the GNU General Public License.
3
- #
4
- # This program is free software: you can redistribute it and/or modify
5
- # it under the terms of the GNU General Public License as published by
6
- # the Free Software Foundation, either version 3 of the License, or any
7
- # later version.
8
- #
9
- # This program is distributed in the hope that it will be useful, but
10
- # WITHOUT ANY WARRANTY; without even the implied warranty of
11
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
- # General Public License at <http://www.gnu.org/licenses/> for more
13
- # details.
14
-
15
1
NAME = $(shell basename $(CURDIR ) )
16
2
PYNAME = $(subst -,_,$(NAME ) )
17
3
18
- DOC = README.md
19
- DOCOUT = $(DOC:.md=.html )
20
-
21
4
all :
22
5
@echo " Type sudo make install|uninstall"
23
- @echo " or make sdist|upload|doc| check|clean"
6
+ @echo " or make sdist|upload|check|clean"
24
7
25
8
install :
26
- pip3 install -U .
9
+ pip3 install -U --root-user-action=ignore .
27
10
28
11
uninstall :
29
- pip3 uninstall $(NAME )
12
+ pip3 uninstall --root-user-action=ignore $(NAME )
30
13
31
14
sdist :
32
15
rm -rf dist
@@ -35,16 +18,11 @@ sdist:
35
18
upload : sdist
36
19
twine3 upload --skip-existing dist/*
37
20
38
- doc : $(DOCOUT )
39
-
40
- $(DOCOUT ) : $(DOC )
41
- markdown $< > $@
42
-
43
21
check :
44
22
flake8 $(PYNAME ) .py setup.py
45
- vermin --no-tips -i -q $(PYNAME ) .py setup.py
46
- shellcheck plugins/*
23
+ vermin --no-tips -i $(PYNAME ) .py setup.py
47
24
python3 setup.py check
25
+ shellcheck plugins/*
48
26
49
27
clean :
50
- @rm -vrf $( DOCOUT ) * .pyc * .egg-info build/ dist/ __pycache__/
28
+ @rm -vrf * .egg-info build/ dist/ __pycache__/
0 commit comments