| 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | export DH_GOLANG_INSTALL_EXTRA := data $(wildcard debian/missing-sources/*) |
| 4 | |
| 5 | %: |
| 6 | dh $@ --builddirectory=_build --buildsystem=golang --with=golang |
| 7 | |
| 8 | override_dh_auto_configure: |
| 9 | # The DH_GOLANG_INSTALL_EXTRA is configured during dh_auto_configure, hence generating the needed generated files at this step |
| 10 | echo 'Generating corresponding files ...' |
| 11 | cat debian/missing-sources/ex.sam| samtools view -Sb - > data/ex.bam |
| 12 | samtools index data/ex.bam data/ex.bam.bai |
| 13 | dh_auto_configure |
| 14 | |
| 15 | override_dh_auto_install: |
| 16 | dh_auto_install -- --no-binaries |