| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
PACKAGE = haunt |
| 4 |
|
| 5 |
%: |
| 6 |
dh $@ |
| 7 |
|
| 8 |
## These three targets will inadvertently mess with .go binary files. |
| 9 |
## Just disable their processing. |
| 10 |
override_dh_dwz: |
| 11 |
dh_dwz --exclude=.go |
| 12 |
override_dh_strip: |
| 13 |
dh_strip --exclude=.go |
| 14 |
override_dh_shlibdeps: |
| 15 |
dh_shlibdeps --exclude=.go |
| 16 |
|
| 17 |
execute_after_dh_install: |
| 18 |
# dh_installexamples won't work here because the example directory |
| 19 |
# needs to be built first. |
| 20 |
mkdir -p $(CURDIR)/debian/$(PACKAGE)/usr/share/doc/$(PACKAGE) |
| 21 |
mv -fv $(CURDIR)/debian/$(PACKAGE)/usr/share/$(PACKAGE)/example $(CURDIR)/debian/$(PACKAGE)/usr/share/doc/$(PACKAGE)/examples |
| 22 |
rmdir $(CURDIR)/debian/$(PACKAGE)/usr/share/$(PACKAGE) |