#!/usr/bin/make -f

# export DH_VERBOSE = 1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_auto_install:
	dh_auto_install --destdir debian/tmp

# Fails with "dwz: Section overlap detected"
# Like other guile libraries
# for instance see guile-gnutls/debian/rules
override_dh_dwz:
	dh_dwz $(BDIR) -Xcurl.go

override_dh_clean:
	dh_clean
# remove generated docs and build artefacts left between builds
	rm -vf doc/guile-curl.info doc/stamp-vti doc/version.texi \
	      module/curl.go check_type *.log test/*.trs test/*.log || true
