File: rules

package info (click to toggle)
golang-goptlib 1.6.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 220 kB
  • sloc: makefile: 9
file content (18 lines) | stat: -rwxr-xr-x 616 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f

GOPTLIB_DIR = _build/src/gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/goptlib

%:
	dh $@ --builddirectory=_build --buildsystem=golang

# we actually do compile the examples, for sanity.
# but we don't want to install them as system binaries nor libraries
# they are installed in the correct place by dh_installexamples
execute_before_dh_auto_install:
	cd _build && rm -rfv bin/ src/git.torproject.org/pluggable-transports/goptlib.git/examples

execute_before_dh_auto_test:
	cp -v test_authcookie $(GOPTLIB_DIR)

execute_after_dh_auto_test:
	rm -v $(GOPTLIB_DIR)/test_authcookie