File: rules

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

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export DH_GOPKG := git.torproject.org/pluggable-transports/goptlib.git

# default value from debhelper's Buildsystem.pm. perhaps there's a better way
BUILDDIR = obj-$(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)

%:
	dh $@ --buildsystem=golang --with=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
override_dh_auto_install:
	cd "$(BUILDDIR)" && rm -rf bin/ src/git.torproject.org/pluggable-transports/goptlib.git/examples
	dh_auto_install