File: rules

package info (click to toggle)
json-schema-validator 2.3.1-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, sid, stretch
  • size: 308 kB
  • ctags: 129
  • sloc: python: 2,256; makefile: 21; sh: 2
file content (36 lines) | stat: -rwxr-xr-x 840 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
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/make -f

PYTHON2=$(shell pyversions -vr)

%:
	dh $@ --with python2,sphinxdoc

.PHONY: override_dh_auto_build
override_dh_auto_build:
	# Build everything else
	dh_auto_build
	# Build sphinx documentation
	python setup.py build_sphinx
	# Remove the .buildinfo file that is of no use to the end users
	$(RM) build/sphinx/html/.buildinfo

.PHONY: override_dh_auto_clean
override_dh_auto_clean:
	# Remove everything else
	dh_auto_clean
	# Remove build directory with sphinx files
	$(RM) -r json_schema_validator.egg-info build setup.cfg

.PHONY: override_dh_compress
override_dh_compress:
	# Do not compress .js files generated by sphinx
	dh_compress -X.js

.PHONY: override_dh_auto_test

ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
test-python%:
	python$* setup.py test -vv

override_dh_auto_test: $(PYTHON2:%=test-python%)
endif