Skip to content

Commit ecdce70

Browse files
committed
build: Implement V=0, V=1 support.
1 parent 4200695 commit ecdce70

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

Makefile

+9-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
#
22
# Standard Makefile supports targets build, install and clean + static
3-
# code checking. make install respects DESTDIR.
3+
# code checking. make install respects DESTDIR, build and install respects
4+
# V=0 and V=1
45

56

67
ifeq ($(DESTDIR),)
78
DESTDIR = $(CURDIR)/install
89
endif
910

11+
VERBOSE = $(or $(V),0)
12+
ifeq ($(VERBOSE), 0)
13+
QUIET_OPT = --quiet
14+
endif
15+
1016
PYTHON_SRC = plugins lib/ddupdate setup.py ddupdate ddupdate-config
1117

1218
# vim-compatible error reporting:
@@ -16,10 +22,10 @@ pylint_template = {path}:{line}: [{msg_id}({symbol}), {obj}] {msg}
1622
all: build
1723

1824
build:
19-
python3 setup.py --quiet build
25+
python3 setup.py $(QUIET_OPT) build
2026

2127
install: .phony
22-
python3 setup.py --quiet install --root=$(DESTDIR)
28+
python3 setup.py $(QUIET_OPT) install --root=$(DESTDIR)
2329

2430
clean: .phony
2531
python3 setup.py clean

0 commit comments

Comments
 (0)