chiark / gitweb /
xf86-input-mtrack (0.3.1-1) unstable; urgency=medium
[xf86-input-mtrack.git] / debian / rules
1 #!/usr/bin/make -f
2
3 CFLAGS=$(shell dpkg-buildflags --get CFLAGS) -D_FORTIFY_SOURCE=2
4 LDFLAGS=$(shell dpkg-buildflags --get LDFLAGS) -Wl,-z,relro
5
6 # Install in debian/tmp to retain control through dh_install:
7 override_dh_auto_install:
8         dh_auto_install --destdir=debian/tmp
9
10 override_dh_auto_clean:
11         [ ! -f Makefile ] || $(MAKE) distclean
12         dh_clean
13
14 # Kill *.la files, and forget no-one:
15 override_dh_install:
16         find debian/tmp -name '*.la' -delete
17         install -d debian/xserver-xorg-input-mtrack/usr/share/X11/xorg.conf.d
18         install -m 644 debian/local/50-mtrack.conf \
19                 debian/xserver-xorg-input-mtrack/usr/share/X11/xorg.conf.d
20
21         dh_install --fail-missing
22
23 override_dh_auto_build:
24         $(MAKE) CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" V=1
25
26 override_dh_shlibdeps:
27         dh_shlibdeps -- --warnings=6
28
29 %:
30         dh $@ --with xsf,autoreconf