328:b0a5ebd86bba
Anton Shestakov <av6@dwimlabs.net>, Tue, 28 Nov 2017 12:14:49 +0800
Makefile: add a prologue with useful flags and options

next change 329:6e89b4cea984
previous change 327:8fc9170554d1

Makefile

Permissions: -rw-r--r--

Other formats: Feeds:
MAKEFLAGS += --warn-undefined-variables
SHELL := bash
.SHELLFLAGS := -eu -o pipefail -c
.DEFAULT_GOAL := all
.DELETE_ON_ERROR:
.SUFFIXES:
pip := ./venv/bin/pip install -r requirements.txt -r dev-requirements.txt
.PHONY: all
all: venv/bin/python
.PHONY: devel
devel: venv
$(pip)
venv:
virtualenv venv
venv/bin/python: | venv
$(pip)
.PHONY: tests
tests: venv/bin/python
./venv/bin/python ./run-tests.py -v \
--cov-report=term \
--cov=candolint \
--cov=incoming \
--cov=viewer \
--cov=checker \
--cov=hooks-queue
.PHONY: check
check: tests