File: rules

package info (click to toggle)
donkey 1.2.0-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 408 kB
  • sloc: ansic: 877; python: 350; makefile: 79; sh: 29
file content (39 lines) | stat: -rwxr-xr-x 982 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
#!/usr/bin/make -f
# debhelper rules file for donkey, the One-Time-Password calculator

# Aim for the top, adapt if anything should break on the buildds.
DEB_BUILD_MAINT_OPTIONS=	hardening=+all
DEB_CFLAGS_MAINT_APPEND=	-Wall -W -Wextra -Wno-stringop-truncation

ifneq (,$(filter werror,$(DEB_BUILD_OPTIONS)))
config_werror=	--enable-werror
else
config_werror=
endif

include /usr/share/dpkg/default.mk

include /usr/share/debhelper/dh_package_notes/package-notes.mk

override_dh_auto_configure:
	dh_auto_configure -D src -- $(config_werror)

override_dh_auto_build:
	dh_auto_build -D src

override_dh_auto_test:
	dh_auto_test -D src -- TEST_PROCESS_DRIVER=pty

override_dh_auto_clean:
	dh_auto_clean -D src

override_dh_auto_install:
	dh_auto_install -D src --destdir '$(CURDIR)/debian/donkey' -- \
		INSTALL_PROGRAM='install -m 755' \
		INSTALL_DATA='install -m 644'

execute_after_dh_installchangelogs:
	install -m 644 00changes debian/donkey/usr/share/doc/donkey/NEWS

%:
	dh $@