| 1 |
|
| 2 |
|
| 3 |
include /usr/share/dpkg/pkg-info.mk |
| 4 |
|
| 5 |
export DH_GOLANG_INSTALL_EXTRA := \ |
| 6 |
typeparams/go.mod \ |
| 7 |
|
| 8 |
|
| 9 |
export DH_GOLANG_EXCLUDES := \ |
| 10 |
apidiff \ |
| 11 |
cmd \ |
| 12 |
errors \ |
| 13 |
x/exp/event \ |
| 14 |
example \ |
| 15 |
jsonrpc2 \ |
| 16 |
shiny \ |
| 17 |
shootout \ |
| 18 |
slog/benchmarks/zap_benchmarks \ |
| 19 |
slog/benchmarks/zerolog_benchmarks \ |
| 20 |
sumdb \ |
| 21 |
|
| 22 |
|
| 23 |
%: |
| 24 |
dh $@ --builddirectory=_build |
| 25 |
|
| 26 |
B = $(CURDIR)/debian/tmp/usr/bin |
| 27 |
M = $(CURDIR)/debian/tmp/usr/share/man/man1 |
| 28 |
|
| 29 |
ifeq (,$(filter nodoc,$(DEB_BUILD_PROFILES))) |
| 30 |
execute_before_dh_installman-arch: |
| 31 |
mkdir -pv $(M) |
| 32 |
help2man --version-string="$(DEB_VERSION)" \ |
| 33 |
--no-info --no-discard-stderr \ |
| 34 |
--name="verifies EBNF grammar productions" \ |
| 35 |
--output $(M)/ebnflint.1 \ |
| 36 |
$(B)/ebnflint |
| 37 |
endif |