#!/usr/bin/make -f
#export DH_VERBOSE=1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@ --without single-binary

# Avoid a wrong strip. See #929238.
override_dh_auto_install:
	dh_auto_install --destdir=debian/htpdate -- STRIP=true

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
ifeq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
	./htpdate -v
	./htpdate -h
endif
endif
