| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
export DH_GOLANG_EXCLUDESscip-debian debian gopls 2:0.22.0+ds-2 gopls/rules/DH_GOLANG_EXCLUDES. := \ |
| 8 |
$(addprefixscip-debian debian gopls 2:0.22.0+ds-2 gopls/rules/addprefix. /,$(addsuffixscip-debian debian gopls 2:0.22.0+ds-2 gopls/rules/addsuffix. (/|$$),\ |
| 9 |
$(filter-outscip-debian debian gopls 2:0.22.0+ds-2 gopls/rules/filter-out. debian gopls,\ |
| 10 |
$(sortscip-debian debian gopls 2:0.22.0+ds-2 gopls/rules/sort. $(shellscip-debian debian gopls 2:0.22.0+ds-2 gopls/rules/shell. find * -name '*.go' | cut -d'/' -f1))\ |
| 11 |
))) \ |
| 12 |
gopls/api-diff \ |
| 13 |
gopls/doc \ |
| 14 |
gopls/integration/govim \ |
| 15 |
gopls/internal/coverage \ |
| 16 |
gopls/internal/analysis/unusedparams/cmd \ |
| 17 |
gopls/internal/protocol/generate \ |
| 18 |
gopls/internal/telemetry/cmd/stacks \ |
| 19 |
gopls/release \ |
| 20 |
|
| 21 |
|
| 22 |
export DH_GOLANG_EXCLUDESscip-debian debian gopls 2:0.22.0+ds-2 gopls/rules/DH_GOLANG_EXCLUDES. += \ |
| 23 |
gopls/internal/regtest |
| 24 |
|
| 25 |
|
| 26 |
export DH_GOLANG_INSTALL_EXTRAscip-debian debian gopls 2:0.22.0+ds-2 gopls/rules/DH_GOLANG_INSTALL_EXTRA. := \ |
| 27 |
gopls/go.sum \ |
| 28 |
gopls/internal/cmd/usage \ |
| 29 |
gopls/internal/doc/api.json \ |
| 30 |
gopls/internal/server/assets \ |
| 31 |
gopls/internal/golang/splitpkg/splitpkg.html.tmpl \ |
| 32 |
gopls/internal/mcp/instructions.md |
| 33 |
|
| 34 |
VERSIONscip-debian debian gopls 2:0.22.0+ds-2 gopls/rules/VERSION. := $(shellscip-debian debian gopls 2:0.22.0+ds-2 gopls/rules/shell. dpkg-parsechangelog --show-field Version | sed -E 's/([0-9]+:)?([0-9.~pre]+).*/\2/') |
| 35 |
LDFLAGSscip-debian debian gopls 2:0.22.0+ds-2 gopls/rules/LDFLAGS. := -ldflags '-X "main.version=v$(VERSION)"' |
| 36 |
|
| 37 |
execute_before_dh_auto_configurescip-debian debian gopls 2:0.22.0+ds-2 gopls/rules/execute_before_dh_auto_configure().: |
| 38 |
|
| 39 |
|
| 40 |
mkdir -p _build |
| 41 |
cp -a debian/go/src _build/ |
| 42 |
|
| 43 |
ifdef AUTOPKGTEST_TMP |
| 44 |
ifeq ($(wildcardscip-debian debian gopls 2:0.22.0+ds-2 gopls/rules/wildcard. "$(AUTOPKGTEST_TMPscip-debian debian gopls 2:0.22.0+ds-2 gopls/rules/AUTOPKGTEST_TMP.)/_build/src/golang.org/x/tools/gopls),) |
| 45 |
execute_after_dh_auto_configurescip-debian debian gopls 2:0.22.0+ds-2 gopls/rules/execute_after_dh_auto_configure().: |
| 46 |
@echo "[info] _build/src/golang.org/x/tools/gopls not found" |
| 47 |
@echo "[info] dh_golang_autopkgtestscip-debian debian debhelper . dh_golang_autopkgtest(). replaced gopls source with golang-golang-x-tools-dev" |
| 48 |
@echo "[info] Undoing dh_golang_autopkgtestscip-debian debian debhelper . dh_golang_autopkgtest().'s mistake" |
| 49 |
rm -rf _build |
| 50 |
mkdir _build |
| 51 |
cp -a debian/go/src _build/ |
| 52 |
dh_auto_configurescip-debian debian debhelper . dh_auto_configure(). -O--builddirectory=_build -O--buildsystem=golang |
| 53 |
endif |
| 54 |
endif |
| 55 |
|
| 56 |
override_dh_auto_buildscip-debian debian gopls 2:0.22.0+ds-2 gopls/rules/override_dh_auto_build().: |
| 57 |
dh_auto_buildscip-debian debian debhelper . dh_auto_build(). -- $(LDFLAGSscip-debian debian gopls 2:0.22.0+ds-2 gopls/rules/LDFLAGS.) |
| 58 |
|
| 59 |
override_dh_auto_installscip-debian debian gopls 2:0.22.0+ds-2 gopls/rules/override_dh_auto_install().: |
| 60 |
dh_auto_installscip-debian debian debhelper . dh_auto_install(). -- --no-source |
| 61 |
|
| 62 |
override_dh_auto_testscip-debian debian gopls 2:0.22.0+ds-2 gopls/rules/override_dh_auto_test().: |
| 63 |
ifeq (,$(findstringscip-debian debian gopls 2:0.22.0+ds-2 gopls/rules/findstring. gccgo, $(shellscip-debian debian gopls 2:0.22.0+ds-2 gopls/rules/shell. go version))) |
| 64 |
|
| 65 |
|
| 66 |
dh_auto_test -- -short -timeout=30m |
| 67 |
endif |
| 68 |
|
| 69 |
%scip-debian debian gopls 2:0.22.0+ds-2 gopls/rules/`%`().: |
| 70 |
dh $@ --builddirectory=_build --buildsystem=golang |