1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
#!/usr/bin/make -f
export DH_GOLANG_INSTALL_ALL := 0
export DH_GOLANG_GO_GENERATE := 1
export DH_GOLANG_INSTALL_EXTRA := examples/ generate-gnostic/test/ test/
export DH_GOLANG_BUILDPKG := \
github.com/googleapis/gnostic/compiler \
github.com/googleapis/gnostic/extensions \
github.com/googleapis/gnostic/jsonschema \
github.com/googleapis/gnostic/OpenAPIv2 \
github.com/googleapis/gnostic/OpenAPIv3 \
github.com/googleapis/gnostic/apps/petstore-builder
%:
dh $@ --buildsystem=golang --with=golang --builddirectory=_build
override_dh_clean:
dh_clean
## TODO ;; FIXME
## github.com/googleapis/gnostic/extensions
#src/github.com/googleapis/gnostic/extensions/extensions.go:39:14: undefined: ExtensionHandlerRequest
#src/github.com/googleapis/gnostic/extensions/extensions.go:50:15: undefined: ExtensionHandlerResponse
# -find . -type f -name '*.pb.go' -delete -printf 'removed %p\n' ## delete generated .pb.go files
#override_dh_auto_test:
# -PATH="$(CURDIR)/_build/bin:$(PATH)" dh_auto_test
override_dh_auto_install:
# dh_auto_install --destdir=debian/tmp
|