File: rules

package info (click to toggle)
mtr 0.92-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,512 kB
  • sloc: ansic: 9,573; sh: 4,448; python: 571; makefile: 477
file content (46 lines) | stat: -rwxr-xr-x 1,202 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

%:
	dh $@

override_dh_auto_configure:
	./bootstrap.sh

	touch configure.in && \
	touch aclocal.m4 && \
	touch configure

	head -n 1 debian/changelog | sed 's/[^(]*(\([^-]*\)-.*/\1/' > .tarball-version
	autoreconf -fi

	CFLAGS=-I.. dh_auto_configure --builddirectory=mtr -- $(shell dpkg-buildflags --export=configure >/dev/null 2>&1 && dpkg-buildflags --export=configure) $(confflags)

	CFLAGS=-I.. dh_auto_configure --builddirectory=mtr-tiny -- $(shell dpkg-buildflags --export=configure >/dev/null 2>&1 && dpkg-buildflags --export=configure) $(confflags) --without-gtk

override_dh_auto_build:
	make -C mtr
	make -C mtr-tiny

override_dh_auto_clean:
	rm -f Makefile.in
	rm -f aclocal.m4
	rm -f configure
	rm -f configure.in
	rm -rf mtr
	rm -rf mtr-tiny
	rm -f .tarball-version
	dh_auto_clean

override_dh_installdirs-arch:
	dh_installdirs -a
	dh_auto_install --builddirectory=mtr --destdir=debian/mtr
	dh_auto_install --builddirectory=mtr-tiny --destdir=debian/mtr-tiny

override_dh_installchangelogs-arch:
	dh_installchangelogs -a NEWS

override_dh_fixperms-arch:
	dh_fixperms -a