File: rules

package info (click to toggle)
pugl 0~svn32%2Bdfsg0-3
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 1,960 kB
  • sloc: python: 15,116; ansic: 674; cpp: 258; objc: 256; sh: 30; makefile: 23
file content (33 lines) | stat: -rwxr-xr-x 635 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
#!/usr/bin/make -f

DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
WAF = python3 ./waf

%:
	dh $@

override_dh_auto_configure:
	$(WAF) configure \
		--prefix=/usr \
		--libdir=/usr/lib/$(DEB_HOST_MULTIARCH) \
		--strict \
		--debug

override_dh_auto_build:
	$(WAF)

override_dh_auto_install:
	$(WAF) install --destdir=$(CURDIR)/debian/tmp

override_dh_auto_clean:
	$(WAF) distclean
	find -name "*.pyc" -delete
	find -name "__pycache__" | xargs rm -rf
	dh_auto_clean

override_dh_strip:
	dh_strip -plibpugl-0-0 --dbg-package=libpugl-dbg
	dh_strip --remaining-packages

# No tests available
override_dh_auto_test: