| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
GOPTLIB_DIR = _build/src/gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/goptlib |
| 4 |
|
| 5 |
%: |
| 6 |
dh $@ --builddirectory=_build --buildsystem=golang |
| 7 |
|
| 8 |
# we actually do compile the examples, for sanity. |
| 9 |
# but we don't want to install them as system binaries nor libraries |
| 10 |
# they are installed in the correct place by dh_installexamples |
| 11 |
execute_before_dh_auto_install: |
| 12 |
cd _build && rm -rfv bin/ src/git.torproject.org/pluggable-transports/goptlib.git/examples |
| 13 |
|
| 14 |
execute_before_dh_auto_test: |
| 15 |
cp -v test_authcookie $(GOPTLIB_DIR) |
| 16 |
|
| 17 |
execute_after_dh_auto_test: |
| 18 |
rm -v $(GOPTLIB_DIR)/test_authcookie |