File: rules

package info (click to toggle)
python-libais 0.17%2Bgit.20190917.master.e464cf8-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,776 kB
  • sloc: cpp: 56,058; python: 11,974; makefile: 535; sh: 466
file content (37 lines) | stat: -rwxr-xr-x 1,071 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DESTDIR=$(CURDIR)/debian/tmp
export PY3_DEF=$(shell py3versions -d)

%:
	dh $@ --with python3 --buildsystem=pybuild

override_dh_autoreconf:

override_dh_auto_clean:
	dh_auto_clean
	rm -rf .eggs
	rm -rf .pybuild
	rm -rf .pytest_cache
	rm -f _ais.*.so

override_dh_auto_test:
ifeq ($(filter nocheck,$(DEB_BUILD_PROFILES)),)
	dh_auto_test
endif

override_dh_auto_install:
	dh_auto_install
	PYTHONPATH=$(DESTDIR)/usr/lib/$(PY3_DEF)/dist-packages help2man \
	  --no-info \
	  --name="Library for decoding maritime AIS messages" \
	  --source="Debian" \
	  --version-string $(shell $(PY3_DEF) -c 'import ais; print(ais.__version__)') \
	  $(DESTDIR)/usr/bin/aisdecode > debian/aisdecode.1
	PYTHONPATH=$(DESTDIR)/usr/lib/$(PY3_DEF)/dist-packages help2man \
	  --no-info \
	  --name="Library for decoding maritime AIS messages" \
	  --source="Debian" \
	  --version-string $(shell $(PY3_DEF) -c 'import ais; print(ais.__version__)') \
	  "$(DESTDIR)/usr/bin/libais_stats --help" > debian/libais_stats.1