File: rules

package info (click to toggle)
linux-gpib-user 4.3.7-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,760 kB
  • sloc: ansic: 10,381; perl: 1,120; xml: 375; makefile: 335; yacc: 335; tcl: 308; python: 173; php: 157; lex: 144; sh: 134; lisp: 94
file content (31 lines) | stat: -rwxr-xr-x 950 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
export GPIB_PYTHON_VERSION=1.0.1
export PYBUILD_NAME = gpib

%:
	dh $@

# We'll build the Python bindings ourselves.
override_dh_auto_configure:
	dh_auto_configure -- --disable-python-binding
	dh_auto_configure --buildsystem=pybuild --sourcedirectory=language/python

execute_after_dh_auto_build:
	dh_auto_build --buildsystem=pybuild --sourcedirectory=language/python

execute_after_dh_auto_install:
	dh_auto_install --buildsystem=pybuild --sourcedirectory=language/python

execute_after_dh_auto_clean:
	dh_auto_clean --buildsystem=pybuild --sourcedirectory=language/python
	touch ChangeLog

# Don't use the source package version for the python module
override_dh_gencontrol:
	dh_gencontrol -ppython3-gpib -- -v$(GPIB_PYTHON_VERSION)-$(DEB_VERSION_REVISION)
	dh_gencontrol --remaining-packages