| 1 |
#!/usr/bin/make -f |
| 2 |
# See debhelper(7) (uncomment to enable) |
| 3 |
# output every command that modifies files on the build system. |
| 4 |
#export DH_VERBOSE = 1 |
| 5 |
|
| 6 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 7 |
|
| 8 |
DPKG_EXPORT_BUILDFLAGS = 1 |
| 9 |
include /usr/share/dpkg/buildflags.mk |
| 10 |
# Upstream's Makefile doesn't honor CPPFLAGS |
| 11 |
CFLAGS+=$(CPPFLAGS) |
| 12 |
|
| 13 |
%: |
| 14 |
dh $@ |
| 15 |
|
| 16 |
override_dh_auto_build: |
| 17 |
dh_auto_build |
| 18 |
make -C docs docs GOMD2MAN=/usr/bin/go-md2man |
| 19 |
|
| 20 |
# Upstream's `make test` target doesn't work either |
| 21 |
override_dh_auto_test: |
| 22 |
: |
| 23 |
|
| 24 |
override_dh_auto_install: |
| 25 |
make install.bin DESTDIR=$(CURDIR)/debian/conmon PREFIX=/usr |
| 26 |
|
| 27 |
override_dh_installchangelogs: |
| 28 |
dh_installchangelogs changelog.txt |