File: rules

package info (click to toggle)
gopacket 1.1.19-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 4,672 kB
  • sloc: sh: 293; python: 75; makefile: 16
file content (29 lines) | stat: -rwxr-xr-x 747 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
29
#!/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/
	cp -r pcapgo obj-$(DEB_HOST_GNU_TYPE)/src/$(DH_GOPKG)/

override_dh_missing:
	dh_missing --fail-missing

override_dh_install:
	dh_install