~lazr-developers/lazr.sshserver/trunk

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Jürgen Gmach
  • Date: 2021-10-31 16:38:55 UTC
  • Revision ID: juergen.gmach@canonical.com-20211031163855-b2brmahmbih8ho37
Moved to git

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright 2018 Canonical Ltd.  This software is licensed under the
2
 
# GNU Affero General Public License version 3 (see the file LICENSE).
3
 
 
4
 
ENV := $(CURDIR)/env
5
 
 
6
 
PYTHON := $(ENV)/bin/python
7
 
FLAKE8 := $(ENV)/bin/flake8
8
 
PIP := $(ENV)/bin/pip
9
 
VIRTUALENV := virtualenv
10
 
 
11
 
build: $(ENV)
12
 
 
13
 
$(ENV):
14
 
        $(VIRTUALENV) $(ENV)
15
 
        $(PIP) install -q -r bootstrap-requirements.txt
16
 
        $(PIP) install -q -c requirements.txt -e .
17
 
        $(PIP) install -q -c test-requirements.txt -e '.[test]'
18
 
        $(PIP) install -q -c docs-requirements.txt -e '.[docs]'
19
 
 
20
 
check: $(ENV)
21
 
        $(PYTHON) -m unittest discover -s src $(ARGS)
22
 
 
23
 
lint: $(ENV)
24
 
        $(FLAKE8) --exclude=__pycache__ src
25
 
 
26
 
clean:
27
 
        find src -name '*.py[co]' -delete
28
 
        rm -rf $(ENV)
29
 
 
30
 
.PHONY: build check lint clean