File: Makefile

package info (click to toggle)
ddupdate 0.7.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 420 kB
  • sloc: python: 1,899; sh: 38; makefile: 35
file content (45 lines) | stat: -rw-r--r-- 935 bytes parent folder | download
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
PYLINT          = pylint-3

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 $(PYLINT) \
	        --rcfile=pylint.conf \
	        --msg-template='$(pylint_template)' \
	        $?

pydocstyle: $(PYTHON_SRC)
	pydocstyle $?

pycodestyle: $(PYTHON_SRC)
	-pycodestyle $?

.phony: