Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 # Don't build binaries or examples and skip a test that expects Open vSwitch/docker to be available
4 export DH_GOLANG_EXCLUDES := cmd/ example/ test/ovs
5
6 %:
7 dh $@ --builddirectory=_build --buildsystem=golang --with=golang
8
9 # This is kind of hacky... modelgen/table_test.go depends on codegen from the examples, which in turn
10 # depend on the modelgen binary that we don't build. Rather than trying to figure out some way to get
11 # it to work, just don't package that file. (I couldn't figure out a nice way to add just the file to
12 # DH_GOLANG_EXCLUDES, so manually remove it prior to the build.)
13 override_dh_auto_configure:
14 dh_auto_configure
15 rm _build/src/github.com/ovn-kubernetes/libovsdb/modelgen/table_test.go