File: rules

package info (click to toggle)
gopacket 1.1.14-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 3,288 kB
  • sloc: sh: 283; python: 75; makefile: 15; asm: 2
file content (28 lines) | stat: -rwxr-xr-x 691 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
22
23
24
25
26
27
28
#!/usr/bin/make -f

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

DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/default.mk

# DH_GOPKG is the upstream path which you would normally “go get”.
# Using it allows us to build applications without patching locations.
export DH_GOPKG := github.com/google/gopacket

NOBUILD=examples pcap/gopacket_benchmark

%:
	dh $@ --buildsystem=golang

override_dh_auto_configure:
	dh_auto_configure
	rm -rf $(patsubst %,obj-*/src/$(DH_GOPKG)/%,$(NOBUILD))
	# Copy test files to build dir
	cp pcap/*.pcap obj-$(DEB_HOST_GNU_TYPE)/src/$(DH_GOPKG)/pcap/

override_dh_missing:
	dh_missing --fail-missing

override_dh_install:
	dh_install