File: rules

package info (click to toggle)
xf86-input-mtrack 0.3.1-1.3
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,928 kB
  • sloc: sh: 11,634; ansic: 2,852; makefile: 247
file content (30 lines) | stat: -rwxr-xr-x 816 bytes parent folder | download | duplicates (3)
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
#!/usr/bin/make -f

CFLAGS=$(shell dpkg-buildflags --get CFLAGS) -D_FORTIFY_SOURCE=2
LDFLAGS=$(shell dpkg-buildflags --get LDFLAGS) -Wl,-z,relro

# Install in debian/tmp to retain control through dh_install:
override_dh_auto_install:
	dh_auto_install --destdir=debian/tmp

override_dh_auto_clean:
	[ ! -f Makefile ] || $(MAKE) distclean
	dh_clean

# Kill *.la files, and forget no-one:
override_dh_install:
	find debian/tmp -name '*.la' -delete
	install -d debian/xserver-xorg-input-mtrack/usr/share/X11/xorg.conf.d
	install -m 644 debian/local/50-mtrack.conf \
		debian/xserver-xorg-input-mtrack/usr/share/X11/xorg.conf.d

	dh_install --fail-missing

override_dh_auto_build:
	$(MAKE) CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" V=1

override_dh_shlibdeps:
	dh_shlibdeps -- --warnings=6

%:
	dh $@ --with xsf,autoreconf