File: rules

package info (click to toggle)
xserver-xorg-video-fbdev 1%3A0.5.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie, trixie-proposed-updates
  • size: 1,772 kB
  • sloc: sh: 4,188; ansic: 1,062; makefile: 53
file content (46 lines) | stat: -rwxr-xr-x 1,192 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
#!/usr/bin/make -f

PACKAGE = xserver-xorg-video-fbdev
OOT     = --builddirectory=build

# Clean:
override_dh_auto_clean:
	dh_auto_clean
	rm -rf build-main/ debian/tmp-main/
	rm -rf build-udeb/ debian/tmp-udeb/

# Configuration, with or without xv:
override_dh_auto_configure:
	dh_auto_configure $(OOT)-main/ -- \
		--libdir=/usr/lib \
		--enable-xv
	dh_auto_configure $(OOT)-udeb/ -- \
		--libdir=/usr/lib \
		--disable-xv

# Build:
override_dh_auto_build:
	$(MAKE) -C build-main/
	$(MAKE) -C build-udeb/

# Install:
override_dh_auto_install:
	$(MAKE) -C build-main/ install DESTDIR=$(CURDIR)/debian/tmp-main
	$(MAKE) -C build-udeb/ install DESTDIR=$(CURDIR)/debian/tmp-udeb

# Kill *.la files, and forget no-one:
override_dh_install:
	find debian/tmp-* -name '*.la' -delete
	dh_install -p$(PACKAGE)      --sourcedir=debian/tmp-main
	dh_install -p$(PACKAGE)-udeb --sourcedir=debian/tmp-udeb

override_dh_missing:
	dh_missing -p$(PACKAGE)      --sourcedir=debian/tmp-main --fail-missing
	dh_missing -p$(PACKAGE)-udeb --sourcedir=debian/tmp-udeb --fail-missing

# That's a plugin, use appropriate warning level:
override_dh_shlibdeps:
	dh_shlibdeps -- --warnings=6

%:
	dh $@ --with quilt,xsf