~mgedmin/imgdiff/master

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Marius Gedminas
  • Date: 2020-10-11 11:02:38 UTC
  • Revision ID: git-v1:75662ff3199877f494df2a6d4beb6e6e69134c33
Cleaned up makefile, added 'make help', newer release.mk

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
PYTHON = python3
2
2
 
3
 
FILE_WITH_VERSION = imgdiff.py
4
 
FILE_WITH_CHANGELOG = CHANGES.rst
5
 
 
6
 
 
7
 
.PHONY: default
8
 
default:
 
3
 
 
4
.PHONY: all
 
5
all:
9
6
        @echo "Nothing to build here"
10
7
 
11
 
.PHONY: preview-pypi-description
12
 
preview-pypi-description:
13
 
        # pip install restview, if missing
14
 
        restview --long-description
15
 
 
16
 
.PHONY: test check
17
 
test check:
 
8
.PHONY: test
 
9
test:                   ##: run tests
18
10
        tox -p auto
19
11
 
20
12
.PHONY:
21
 
coverage:
 
13
coverage:               ##: measure test coverage
22
14
        tox -e coverage
23
15
 
24
16
# XXX: this was meant for uploading to pypi, but pypi deprecated static
25
17
# file hosting and I should switch to ReadTheDocs.org
26
18
.PHONY: docs
27
 
docs:
 
19
docs:                   ##: (obsolete) build docs.zip
28
20
        rm -rf build/docs
29
21
        mkdir -p build/docs
30
22
        @$(PYTHON) setup.py --long-description | rst2html --exit-status=2 > build/docs/index.html
32
24
        cd build/docs && zip ../docs.zip *
33
25
 
34
26
 
 
27
FILE_WITH_VERSION = imgdiff.py
35
28
include release.mk