156:ae3c941a4ebb
Anton Shestakov <av6@dwimlabs.net>, Tue, 31 Oct 2017 12:44:53 +0800
Makefile: add a prologue with useful flags and options

next change 157:45e6e68a871b
previous change 155:eafed0b93f8e

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
.PHONY: all
all: tests
.PHONY: devel
devel: venv
$(pip)
venv:
virtualenv venv
venv/bin/python: | venv
$(pip)
.PHONY: tests
tests: venv/bin/python
./venv/bin/python ./test.py
.PHONY: check
check: tests