debian/rules
raw| 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | export DH_GOLANG_EXCLUDES := .tool |
| 4 | # Schema json is required to build crun. |
| 5 | export DH_GOLANG_INSTALL_EXTRA := $(shell find ./schema/ -maxdepth 1 -type f -name '*.json') |
| 6 | |
| 7 | %: |
| 8 | dh $@ --buildsystem=golang --with=golang --builddirectory=_build |
| 9 | |
| 10 | execute_after_dh_auto_configure: |
| 11 | find _build -name validate.go -delete -print |