-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (28 loc) · 840 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#
# Project: xonotic-map-manager
# Copyright: (c) 2016 by Tyler Mulligan <[email protected]> and contributors
# License: MIT, see the LICENSE file for more details
#
# A GNU Makefile for the project.
#
.PHONY: help clean lint docs tests tests-coverage
help:
@echo "Use \`make <target>', where <target> is one of the following:"
@echo " clean - remove all generated files"
@echo " lint - check code style with flake8"
@echo " docs - make docs"
@echo " tests - run tests"
@echo " tests-coverage - obtain test coverage"
clean:
@find . -name '__pycache__' -exec rm -rf {} +
@find . -name '*.py[co]' -exec rm -f {} +
@cd docs && $(MAKE) clean
@rm -rf .tox
lint:
@flake8 --ignore=E221,E501,F401,F841,E128 xmm/*.py
docs: docs/
@cd docs && $(MAKE) html
tests:
@py.test
tests-coverage:
@tox