File: rules

package info (click to toggle)
graphy 1.0%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch, wheezy
  • size: 288 kB
  • ctags: 443
  • sloc: python: 2,224; makefile: 25; sh: 7
file content (30 lines) | stat: -rwxr-xr-x 784 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
#!/usr/bin/make -f
%:
	dh $@ --with python2

override_dh_install:
	set -e; for python in $(shell pyversions -r); do \
		case $$python in \
			python2.4|python2.5) \
				dh_install graphy usr/lib/$$python/site-packages ;; \
			python2.6|python2.7) \
				dh_install graphy usr/lib/$$python/dist-packages ;; \
			*) \
				echo "$$python is not supported" ; exit 1 ;; \
		esac \
	done

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	for python in $(shell pyversions -r); do \
		PYTHONPATH=. $$python graphy/all_tests.py ; \
	done
endif

override_dh_auto_clean:
	dh_auto_clean
	find graphy -type f -name '*.pyc' -delete

get-orig-source:
	cd $(dir $(firstword $(MAKEFILE_LIST)))../ && \
	uscan --rename --force-download --watchfile debian/watch --destdir $(CURDIR)