| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
%: |
| 4 |
dh $@ --builddirectory=debian/_build --buildsystem=golang |
| 5 |
|
| 6 |
# this hack works around cyclic dependencies between these two packages. |
| 7 |
# zdfs is tiny, and easy to ship here |
| 8 |
execute_after_dh_auto_configure: |
| 9 |
mkdir -pv debian/_build/src/github.com/data-accelerator/zdfs |
| 10 |
cp -v debian/zdfs/* debian/_build/src/github.com/data-accelerator/zdfs |
| 11 |
|
| 12 |
execute_after_dh_auto_install: |
| 13 |
mkdir -pv debian/tmp/usr/share/gocode/src/github.com/data-accelerator/zdfs |
| 14 |
cp -v debian/zdfs/*.go debian/tmp/usr/share/gocode/src/github.com/data-accelerator/zdfs |
| 15 |
# rename the ctr binary, cf. #1133166 |
| 16 |
mv -v debian/tmp/usr/bin/ctr debian/tmp/usr/bin/ctr.accelerated-container-image |