File: rules

package info (click to toggle)
golang-go-systemd 2-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 240 kB
  • ctags: 166
  • sloc: sh: 42; makefile: 7
file content (21 lines) | stat: -rwxr-xr-x 655 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
export DH_GOPKG := github.com/coreos/go-systemd

override_dh_auto_configure:
	# the examples don't compile/test properly, so we purge them
	[ ! -d examples ] || rm -rf examples
	dh_auto_configure -O--buildsystem=golang

# TODO figure out what's wrong with the tests and fix it
override_dh_auto_test:
	# the upstream tests are a little hairy and obviously systemd-centric
	# skipping them for now (to be revisited later)
	#[ ! -S /var/run/dbus/system_bus_socket ] || \
	#	dh_auto_test -O--buildsystem=golang

%:
	dh $@ --buildsystem=golang --with=golang