File: rules

package info (click to toggle)
libinput 1.28.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie, trixie-updates
  • size: 7,804 kB
  • sloc: ansic: 97,351; python: 3,522; sh: 183; makefile: 37; cpp: 7
file content (47 lines) | stat: -rwxr-xr-x 1,037 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/usr/bin/make -f

ifeq (,$(filter noudeb, $(DEB_BUILD_PROFILES)))
  with_udeb = yes
endif

override_dh_auto_configure:
	dh_auto_configure -B build-deb -- \
		-Ddocumentation=false \
		-Dudev-dir=/usr/lib/udev

ifeq ($(with_udeb),yes)
	dh_auto_configure -B build-udeb -- \
		-Ddocumentation=false \
		-Dudev-dir=/usr/lib/udev \
		-Dlibwacom=false
endif

override_dh_auto_build:
	dh_auto_build -B build-deb
ifeq ($(with_udeb),yes)
	dh_auto_build -B build-udeb
endif

override_dh_auto_install:
	dh_auto_install -B build-deb --destdir=debian/tmp/main
ifeq ($(with_udeb),yes)
	dh_auto_install -B build-udeb --destdir=debian/tmp/udeb
endif

override_dh_install:
	find debian/tmp -name '*.la' -delete
ifeq ($(with_udeb),yes)
	dh_install -plibinput10-udeb --sourcedir=debian/tmp/udeb
endif
	dh_install --remaining-packages --sourcedir=debian/tmp/main

override_dh_makeshlibs:
	dh_makeshlibs -plibinput10 -V --add-udeb="libinput10-udeb" -- -c4

override_dh_clean:
	rm -f doc/doxygen_sqlite3.db
	rm -rf build-deb build-udeb
	dh_clean

%:
	dh $@