File: rules

package info (click to toggle)
iputils 3%3A20250605-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,848 kB
  • sloc: ansic: 6,033; xml: 1,797; sh: 543; makefile: 28
file content (24 lines) | stat: -rwxr-xr-x 642 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
21
22
23
24
#!/usr/bin/make -f

export CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
export CFLAGS:=$(shell dpkg-buildflags --get CFLAGS)
export DEBIAN_LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
export BUILD_DIR=obj-$(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)

TARGETS=ping tracepath clockdiff arping
MAN_TARGETS=doc/arping.8 doc/clockdiff.8 \
	   doc/ping.8 doc/tracepath.8

%:
	dh $@ --buildsystem=meson+ninja --builddirectory=$(BUILD_DIR)

override_dh_auto_configure:
	dh_auto_configure -- \
		-DBUILD_HTML_MANS=false \
		-DNO_SETCAP_OR_SUID=true \
		-DUSE_GETTEXT=false

override_dh_auto_test:

execute_after_dh_clean:
	-rm -rf build-dir