#!/usr/bin/make -f

PACKAGE = haunt

%:
	dh $@

## These three targets will inadvertently mess with .go binary files.
## Just disable their processing.
override_dh_dwz:
	dh_dwz --exclude=.go
override_dh_strip:
	dh_strip --exclude=.go
override_dh_shlibdeps:
	dh_shlibdeps --exclude=.go

execute_after_dh_install:
# dh_installexamples won't work here because the example directory
# needs to be built first.
	mkdir -p $(CURDIR)/debian/$(PACKAGE)/usr/share/doc/$(PACKAGE)
	mv -fv $(CURDIR)/debian/$(PACKAGE)/usr/share/$(PACKAGE)/example $(CURDIR)/debian/$(PACKAGE)/usr/share/doc/$(PACKAGE)/examples
	rmdir $(CURDIR)/debian/$(PACKAGE)/usr/share/$(PACKAGE)
