File: Makefile

package info (click to toggle)
python-extras 1.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 112 kB
  • sloc: python: 229; makefile: 30
file content (30 lines) | stat: -rw-r--r-- 659 bytes parent folder | download | duplicates (10)
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
# See README.rst for copyright and licensing details.

PYTHON=python
SOURCES=$(shell find extras -name "*.py")

check:
	PYTHONPATH=$(PWD) $(PYTHON) -m testtools.run extras.tests.test_suite

TAGS: ${SOURCES}
	ctags -e -R extras/

tags: ${SOURCES}
	ctags -R extras/

clean:
	rm -f TAGS tags
	find extras -name "*.pyc" -exec rm '{}' \;

### Documentation ###

apidocs:
	# pydoctor emits deprecation warnings under Ubuntu 10.10 LTS
	PYTHONWARNINGS='ignore::DeprecationWarning' \
		pydoctor --make-html --add-package extras \
		--docformat=restructuredtext --project-name=extras \
		--project-url=https://launchpad.net/extras


.PHONY: apidocs
.PHONY: check clean