File: rules

package info (click to toggle)
xf86-input-xwiimote 0.5-1
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, buster, jessie, jessie-kfreebsd, sid, stretch, trixie
  • size: 172 kB
  • ctags: 130
  • sloc: ansic: 1,303; sh: 366; makefile: 201
file content (30 lines) | stat: -rwxr-xr-x 814 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
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-xwiimote/usr/share/X11/xorg.conf.d
	install -m 644 60-xorg-xwiimote.conf \
		debian/xserver-xorg-input-xwiimote/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