File: rules

package info (click to toggle)
sqlparse 0.1.4-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 404 kB
  • sloc: python: 3,239; sql: 120; makefile: 98
file content (22 lines) | stat: -rwxr-xr-x 410 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/make -f

%:
	dh $@ --with python2 --with sphinxdoc --buildsystem python_distutils

override_dh_auto_test:
ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
	set -e; \
	for ver in $(shell pyversions -vr); do \
		python$$ver tests/run_tests.py; \
	done
endif

override_dh_clean:
	rm -fR docs/build
	dh_clean

build: build-indep
build-indep: docs/build/html

docs/build/html:
	cd docs && $(MAKE) html