| 1 |
#!/usr/bin/make -f |
| 2 |
# debhelper rules file for hexer. |
| 3 |
|
| 4 |
include /usr/share/dpkg/default.mk |
| 5 |
|
| 6 |
include /usr/share/debhelper/dh_package_notes/package-notes.mk |
| 7 |
|
| 8 |
# Aim for the top, adapt if anything should break on the buildds. |
| 9 |
DEB_BUILD_MAINT_OPTIONS= hardening=+all |
| 10 |
export DEB_BUILD_MAINT_OPTIONS |
| 11 |
|
| 12 |
DEB_CFLAGS_MAINT_APPEND= -pipe -std=c99 \ |
| 13 |
-Wall -W -pedantic -Wbad-function-cast \ |
| 14 |
-Wcast-align -Wcast-qual -Winline \ |
| 15 |
-Wmissing-prototypes -Wnested-externs \ |
| 16 |
-Wredundant-decls -Wstrict-prototypes -Wwrite-strings |
| 17 |
DEB_CPPFLAGS_MAINT_APPEND= -DHE_DEFAULT_PAGER=\"pager\" |
| 18 |
export DEB_CPPFLAGS_MAINT_APPEND DEB_CFLAGS_MAINT_APPEND |
| 19 |
|
| 20 |
override_dh_auto_test: |
| 21 |
env HEXER_PROG='${CURDIR}/hexer' python3 -m pytest -vv -- python/tests/unit |
| 22 |
|
| 23 |
override_dh_auto_install: |
| 24 |
dh_auto_install --destdir '${CURDIR}/debian/hexer' -- PREFIX=/usr MANDIR=/usr/share/man/man1 DOCSDIR=/usr/share/doc/hexer |
| 25 |
|
| 26 |
override_dh_installchangelogs: |
| 27 |
dh_installchangelogs -X changes.md |
| 28 |
ln -s md/changes.md.gz debian/hexer/usr/share/doc/hexer/NEWS.gz |
| 29 |
|
| 30 |
%: |
| 31 |
dh $@ |