File: rules

package info (click to toggle)
adapterremoval 2.3.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 10,100 kB
  • sloc: cpp: 21,268; python: 1,152; sh: 936; makefile: 200
file content (32 lines) | stat: -rwxr-xr-x 592 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
#!/usr/bin/make -f

# DH_VERBOSE := 1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

include /usr/share/dpkg/default.mk

%:
	dh $@

override_dh_auto_build:
	dh_auto_build
	markdown README.md > README.html

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	# dh_auto_test
	make test
	make clean_tests
endif

override_dh_auto_install:
	make PREFIX=$(CURDIR)/debian/$(DEB_SOURCE)/usr
	# Hmmm, this does nothing ...

override_dh_installchangelogs:
	dh_installchangelogs CHANGES.md

override_dh_fixperms:
	dh_fixperms
	find debian -name benchmark.sh -exec chmod +x \{\} \;