File: rules

package info (click to toggle)
python-freecontact 1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 268 kB
  • ctags: 44
  • sloc: cpp: 291; python: 62; makefile: 18
file content (27 lines) | stat: -rwxr-xr-x 861 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
#!/usr/bin/make -f
#export DH_VERBOSE=1

export CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
export CFLAGS:=$(shell dpkg-buildflags --get CFLAGS)
export CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS)
export LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)

Description := $(shell sed -e ':a; N; s/\n/$${Newline}/; ta' < debian/Description)

.PHONY: override_dh_gencontrol
override_dh_gencontrol:
	dh_gencontrol -- '-VDescription=$(Description)'

.PHONY: get-orig-source
get-orig-source:
	uscan --verbose --force-download --destdir=..

PYVER = $(shell echo -e 'import sys\nprint(str(sys.version_info.major)+"."+str(sys.version_info.minor))' | /usr/bin/python)
PYVERBDIR = $(wildcard ./build/lib.*-2.7)

.PHONY: override_dh_auto_test
override_dh_auto_test:
	PYTHONPATH=$(PYVERBDIR) ./test/test01.py

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