Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 include /usr/share/dpkg/pkg-info.mk
4
5 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
6 export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
7 export GPIB_PYTHON_VERSION=1.0.1
8 export PYBUILD_NAME = gpib
9
10 %:
11 dh $@
12
13 # We'll build the Python bindings ourselves.
14 override_dh_auto_configure:
15 dh_auto_configure -- --disable-python-binding
16 dh_auto_configure --buildsystem=pybuild --sourcedirectory=language/python
17
18 execute_after_dh_auto_build:
19 dh_auto_build --buildsystem=pybuild --sourcedirectory=language/python
20
21 execute_after_dh_auto_install:
22 dh_auto_install --buildsystem=pybuild --sourcedirectory=language/python
23
24 execute_after_dh_auto_clean:
25 dh_auto_clean --buildsystem=pybuild --sourcedirectory=language/python
26 touch ChangeLog
27
28 # Don't use the source package version for the python module
29 override_dh_gencontrol:
30 dh_gencontrol -ppython3-gpib -- -v$(GPIB_PYTHON_VERSION)-$(DEB_VERSION_REVISION)
31 dh_gencontrol --remaining-packages