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
|
#!/usr/bin/make -f
# debhelper rules file for hexer.
include /usr/share/dpkg/default.mk
include /usr/share/debhelper/dh_package_notes/package-notes.mk
# Aim for the top, adapt if anything should break on the buildds.
DEB_BUILD_MAINT_OPTIONS= hardening=+all
export DEB_BUILD_MAINT_OPTIONS
DEB_CFLAGS_MAINT_APPEND= -pipe -std=c99 \
-Wall -W -pedantic -Wbad-function-cast \
-Wcast-align -Wcast-qual -Winline \
-Wmissing-prototypes -Wnested-externs \
-Wredundant-decls -Wstrict-prototypes -Wwrite-strings
DEB_CPPFLAGS_MAINT_APPEND= -DHE_DEFAULT_PAGER=\"pager\"
export DEB_CPPFLAGS_MAINT_APPEND DEB_CFLAGS_MAINT_APPEND
override_dh_auto_test:
env HEXER_PROG='${CURDIR}/hexer' python3 -m pytest -vv -- debian/tests/python/tests/unit
override_dh_auto_install:
dh_auto_install --destdir '${CURDIR}/debian/hexer' -- PREFIX=/usr MANDIR=/usr/share/man/man1
override_dh_installchangelogs:
dh_installchangelogs -X CHANGES
install -m 644 CHANGES debian/hexer/usr/share/doc/hexer/NEWS
%:
dh $@
|