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
# 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
export DEB_BUILD_MAINT_OPTIONS DEB_CFLAGS_MAINT_APPEND
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 -- \
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 $@
|