| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
DEB_DESTDIR := debian/mender-connect |
| 4 |
|
| 5 |
%: |
| 6 |
dh $@ --builddirectory=_build --buildsystem=golang --with=golang |
| 7 |
|
| 8 |
override_dh_auto_build: |
| 9 |
dh_auto_build -O--buildsystem=golang -- \ |
| 10 |
-ldflags "-X github.com/mendersoftware/mender-connect/config.Version=$(DEB_VERSION)" |
| 11 |
|
| 12 |
override_dh_auto_install: |
| 13 |
dh_auto_install -- --no-source |
| 14 |
# Install example config provided by upstream |
| 15 |
$(MAKE) DESTDIR=$(DEB_DESTDIR) install-conf |
| 16 |
|
| 17 |
override_dh_auto_test: |
| 18 |
dbus-test-runner \ |
| 19 |
--bus-type=system \ |
| 20 |
--max-wait=600 \ |
| 21 |
-t dh_auto_test |
| 22 |
|