File: rules

package info (click to toggle)
pyresample 1.10.3-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 35,864 kB
  • sloc: python: 9,161; cpp: 352; makefile: 92; sh: 16
file content (42 lines) | stat: -rwxr-xr-x 864 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
32
33
34
35
36
37
38
39
40
41
42
#!/usr/bin/make -f
# -*- makefile -*-

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

# Enable hardening build flags
export DEB_BUILD_MAINT_OPTIONS=hardening=+all

export PYBUILD_NAME=pyresample


%:
	dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild


override_dh_auto_build:
	dh_auto_build --buildsystem=pybuild
ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
	env PYTHONPATH=$(CURDIR) $(MAKE) -C docs html
	rm -rf docs/build/html/_static/images/
endif


override_dh_auto_clean:
	dh_auto_clean --buildsystem=pybuild
	$(MAKE) -C docs clean
	$(RM) -r build pyresample.egg-info pyresample/ewa/*.so


override_dh_installchangelogs:
	dh_installchangelogs README.md


override_dh_python2:
	dh_python2 -ppython-pyresample
	dh_numpy -ppython-pyresample


override_dh_python3:
	dh_python3 -ppython3-pyresample
	dh_numpy3 -ppython3-pyresample