File: rules

package info (click to toggle)
librcsb-core-wrapper 1.005-10
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 16,504 kB
  • sloc: xml: 122,915; cpp: 25,250; ansic: 3,736; makefile: 1,032; sh: 772; lex: 294; yacc: 235; perl: 213; python: 121; csh: 30
file content (42 lines) | stat: -rwxr-xr-x 1,065 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
37
38
39
40
41
42
#!/usr/bin/make -f

export DEB_LDFLAGS_MAINT_APPEND  = -Wl,--as-needed

# lkajan: we borrow from libtorrent-rasterbar and pythonmagick here (thank you)
PYVERSIONS=$(shell pyversions -vr)

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

%:
	dh $@ --with python3

override_dh_auto_build: override_dh_auto_build-nopy override_dh_auto_build-py

override_dh_auto_build-nopy:
	dh_auto_build
	$(MAKE) doc

override_dh_auto_build-py: override_dh_auto_build-nopy
	dh_auto_build --sourcedirectory=wrapper/python --buildsystem=pybuild

override_dh_auto_install: override_dh_auto_install-nopy override_dh_auto_install-py

override_dh_auto_install-nopy:
	# lkajan: there is no real install mechanism in the upstream sources

override_dh_auto_install-py:
	dh_auto_install --sourcedirectory=wrapper/python --buildsystem=pybuild

override_dh_installdocs:
	dh_installdocs
	find debian -name "*.md5" -delete

override_dh_makeshlibs:
	dh_makeshlibs -V

override_dh_auto_clean:
	dh_auto_clean
	rm -rf wrapper/python/build