Add a --verbose build flag

This commit is contained in:
Kovid Goyal
2017-11-20 15:26:27 +05:30
parent 163ce2a066
commit ec06dd7460
3 changed files with 29 additions and 8 deletions

View File

@@ -1,16 +1,23 @@
ifdef V
VVAL=--verbose
endif
ifdef VERBOSE
VVAL=--verbose
endif
all:
python3 setup.py
python3 setup.py $(VVAL)
test:
python3 setup.py test
python3 setup.py $(VVAL) test
clean:
python3 setup.py clean
python3 setup.py $(VVAL) clean
# A debug build
debug:
python3 setup.py build --debug
python3 setup.py build $(VVAL) --debug
# Build with the ASAN and UBSAN sanitizers
asan:
python3 setup.py build --debug --sanitize
python3 setup.py build $(VVAL) --debug --sanitize