forked from leamas/ddupdate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (31 loc) · 913 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
39
40
41
42
43
44
45
#
# Standard Makefile supports targets build, install and clean + static
# code checking. make install respects DESTDIR, build and install respects
# V=0 and V=1
ifeq ($(DESTDIR),)
DESTDIR = $(CURDIR)/install
endif
VERBOSE = $(or $(V),0)
ifeq ($(VERBOSE), 0)
QUIET_OPT = --quiet
endif
PYTHON_SRC = plugins lib/ddupdate setup.py ddupdate ddupdate-config
# vim-compatible error reporting:
pylint_template = {path}:{line}: [{msg_id}({symbol}), {obj}] {msg}
all: build
build:
python3 setup.py $(QUIET_OPT) build
install: .phony
python3 setup.py $(QUIET_OPT) install --root=$(DESTDIR)
clean: .phony
python3 setup.py clean
pylint: $(PYTHON_SRC)
-PYTHONPATH=$(CURDIR)/lib python3-pylint \
--rcfile=pylint.conf \
--msg-template='$(pylint_template)' \
$?
pydocstyle: $(PYTHON_SRC)
pydocstyle $?
pycodestyle: $(PYTHON_SRC)
pycodestyle $?
.phony: